I've a problem with Json lib when the json string is an emty array
This code :
cause an error:
Thanks in advance
This code :
B4X:
Dim StrResult as string = "[]"
Dim Json As JSONParser
Json.Initialize(StrResult)
Dim Positions As List = Json.NextArray
Positions = Json.NextArray
org.json.JSONException: End of input at character 2 of []
at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
at org.json.JSONTokener.nextValue(JSONTokener.java:97)
at anywheresoftware.b4a.objects.collections.JSONParser.NextArray(JSONParser.java:60)
Thanks in advance