@@ -557,11 +557,21 @@ Private Function json_ParseString(json_String As String, ByRef json_Index As Lon
557
557
json_BufferAppend json_buffer, vbFormFeed, json_BufferPosition, json_BufferLength
558
558
json_Index = json_Index + 1
559
559
Case "n"
560
- json_BufferAppend json_buffer, vbCrLf, json_BufferPosition, json_BufferLength
561
- json_Index = json_Index + 1
560
+ If VBA.Mid$(json_String, json_Index+1 , 2 ) == "\r" Then
561
+ json_BufferAppend json_buffer, vbCrLf, json_BufferPosition, json_BufferLength
562
+ json_Index = json_Index + 3
563
+ Else
564
+ json_BufferAppend json_buffer, vbLf, json_BufferPosition, json_BufferLength
565
+ json_Index = json_Index + 1
566
+ End If
562
567
Case "r"
563
- json_BufferAppend json_buffer, vbCr, json_BufferPosition, json_BufferLength
564
- json_Index = json_Index + 1
568
+ If VBA.Mid$(json_String, json_Index+1 , 2 ) == "\n" Then
569
+ json_BufferAppend json_buffer, vbCrLf, json_BufferPosition, json_BufferLength
570
+ json_Index = json_Index + 3
571
+ Else
572
+ json_BufferAppend json_buffer, vbCr, json_BufferPosition, json_BufferLength
573
+ json_Index = json_Index + 1
574
+ End If
565
575
Case "t"
566
576
json_BufferAppend json_buffer, vbTab, json_BufferPosition, json_BufferLength
567
577
json_Index = json_Index + 1
0 commit comments