Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update new line handling #41

Closed
Teatabler opened this issue Oct 10, 2016 · 3 comments · May be fixed by #44
Closed

Update new line handling #41

Teatabler opened this issue Oct 10, 2016 · 3 comments · May be fixed by #44

Comments

@Teatabler
Copy link

In line 560, in my opinion, Chr(10) is better than vbCrLf.

559      Case "n"
560           json_BufferAppend json_buffer, vbCrLf, json_BufferPosition, json_BufferLength
561           json_Index = json_Index + 1
@timhall
Copy link
Member

timhall commented Dec 29, 2016

Related: VBA-tools/VBA-Web#270

@timhall timhall changed the title Chr(10) is better than vbCrLf Update new line handling Dec 29, 2016
Sophist-UK added a commit to Sophist-UK/VBA-JSON that referenced this issue Jan 9, 2017
Addresses VBA-tools#41.

Fix as per discussion in VBA-tools/VBA-Web#270
Sophist-UK added a commit to Sophist-UK/VBA-Web that referenced this issue Jan 9, 2017
@omegastripes
Copy link

I converted the sample {"text":"abc\r\ndef"} to object with ParseJson, then converted it to string with ConvertToJson, returned string is { "text": "abc\r\r\ndef" }
Seems ConvertToJson duplicates \r within strings.

@timhall
Copy link
Member

timhall commented Apr 6, 2018

A little more activity on #67 closing in favor of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants