Skip to content

Commit e457dac

Browse files
committed
Remove explicit JsonConverter references
1 parent 8b2a839 commit e457dac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

JsonConverter.bas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Public Function ConvertToJson(ByVal json_DictionaryCollectionOrArray As Variant)
213213
ConvertToJson = """" & json_DateStr & """"
214214
Case VBA.vbString
215215
' String (or large number encoded as string)
216-
If Not JsonConverter.JsonOptions.UseDoubleForLargeNumbers And json_StringIsLargeNumber(json_DictionaryCollectionOrArray) Then
216+
If Not JsonOptions.UseDoubleForLargeNumbers And json_StringIsLargeNumber(json_DictionaryCollectionOrArray) Then
217217
ConvertToJson = json_DictionaryCollectionOrArray
218218
Else
219219
ConvertToJson = """" & json_Encode(json_DictionaryCollectionOrArray) & """"
@@ -484,7 +484,7 @@ Private Function json_ParseNumber(json_String As String, ByRef json_Index As Lon
484484
' See: http://support.microsoft.com/kb/269370
485485
'
486486
' Fix: Parse -> String, Convert -> String longer than 15 characters containing only numbers and decimal points -> Number
487-
If Not JsonConverter.JsonOptions.UseDoubleForLargeNumbers And Len(json_Value) >= 16 Then
487+
If Not JsonOptions.UseDoubleForLargeNumbers And Len(json_Value) >= 16 Then
488488
json_ParseNumber = json_Value
489489
Else
490490
' VBA.Val does not use regional settings, so guard for comma is not needed
@@ -499,7 +499,7 @@ Private Function json_ParseKey(json_String As String, ByRef json_Index As Long)
499499
' Parse key with single or double quotes
500500
If VBA.Mid$(json_String, json_Index, 1) = """" Or VBA.Mid$(json_String, json_Index, 1) = "'" Then
501501
json_ParseKey = json_ParseString(json_String, json_Index)
502-
ElseIf JsonConverter.JsonOptions.AllowUnquotedKeys Then
502+
ElseIf JsonOptions.AllowUnquotedKeys Then
503503
Dim json_Char As String
504504
Do While json_Index > 0 And json_Index <= Len(json_String)
505505
json_Char = VBA.Mid$(json_String, json_Index, 1)
@@ -555,7 +555,7 @@ Private Function json_Encode(ByVal json_Text As Variant) As String
555555
json_Char = "\\"
556556
Case 47
557557
' / -> 47 -> \/ (optional)
558-
If JsonConverter.JsonOptions.EscapeSolidus Then
558+
If JsonOptions.EscapeSolidus Then
559559
json_Char = "\/"
560560
End If
561561
Case 8

0 commit comments

Comments
 (0)