@@ -348,7 +348,7 @@ Public Function ConvertToJson(ByVal JsonValue As Variant, Optional ByVal Whitesp
348
348
349
349
json_BufferAppend json_Buffer, json_Indentation & "]" , json_BufferPosition, json_BufferLength
350
350
351
- ConvertToJson = json_BufferToString(json_Buffer, json_BufferPosition, json_BufferLength )
351
+ ConvertToJson = json_BufferToString(json_Buffer, json_BufferPosition)
352
352
353
353
' Dictionary or Collection
354
354
Case VBA.vbObject
@@ -441,7 +441,7 @@ Public Function ConvertToJson(ByVal JsonValue As Variant, Optional ByVal Whitesp
441
441
json_BufferAppend json_Buffer, json_Indentation & "]" , json_BufferPosition, json_BufferLength
442
442
End If
443
443
444
- ConvertToJson = json_BufferToString(json_Buffer, json_BufferPosition, json_BufferLength )
444
+ ConvertToJson = json_BufferToString(json_Buffer, json_BufferPosition)
445
445
Case VBA.vbInteger, VBA.vbLong, VBA.vbSingle, VBA.vbDouble, VBA.vbCurrency, VBA.vbDecimal
446
446
' Number (use decimals for numbers)
447
447
ConvertToJson = VBA.Replace(JsonValue, "," , "." )
@@ -591,7 +591,7 @@ Private Function json_ParseString(json_String As String, ByRef json_Index As Lon
591
591
json_Index = json_Index + 4
592
592
End Select
593
593
Case json_Quote
594
- json_ParseString = json_BufferToString(json_Buffer, json_BufferPosition, json_BufferLength )
594
+ json_ParseString = json_BufferToString(json_Buffer, json_BufferPosition)
595
595
json_Index = json_Index + 1
596
596
Exit Function
597
597
Case Else
@@ -733,7 +733,7 @@ Private Function json_Encode(ByVal json_Text As Variant) As String
733
733
json_BufferAppend json_Buffer, json_Char, json_BufferPosition, json_BufferLength
734
734
Next json_Index
735
735
736
- json_Encode = json_BufferToString(json_Buffer, json_BufferPosition, json_BufferLength )
736
+ json_Encode = json_BufferToString(json_Buffer, json_BufferPosition)
737
737
End Function
738
738
739
739
Private Function json_Peek (json_String As String , ByVal json_Index As Long , Optional json_NumberOfCharacters As Long = 1 ) As String
@@ -760,7 +760,6 @@ Private Function json_StringIsLargeNumber(json_String As Variant) As Boolean
760
760
' Length with be at least 16 characters and assume will be less than 100 characters
761
761
If json_Length >= 16 And json_Length <= 100 Then
762
762
Dim json_CharCode As String
763
- Dim json_Index As Long
764
763
765
764
json_StringIsLargeNumber = True
766
765
@@ -854,7 +853,7 @@ Private Sub json_BufferAppend(ByRef json_Buffer As String, _
854
853
json_BufferPosition = json_BufferPosition + json_AppendLength
855
854
End Sub
856
855
857
- Private Function json_BufferToString (ByRef json_Buffer As String , ByVal json_BufferPosition As Long , ByVal json_BufferLength As Long ) As String
856
+ Private Function json_BufferToString (ByRef json_Buffer As String , ByVal json_BufferPosition As Long ) As String
858
857
If json_BufferPosition > 0 Then
859
858
json_BufferToString = VBA.Left$(json_Buffer, json_BufferPosition)
860
859
End If
0 commit comments