Found an issue in SpiderBasic ? Please report it here !
User avatar
Posts: 596
Joined: Mon Feb 24, 2014 10:17 pm

JSONErrorX() doesn't work

by Peter Thu Jun 27, 2019 2:45 pm


the code example was taken from the help. The last parenthesis was removed by me.

JSONErrorMessage is not called (also JSONErrorLine() and JSONErrorPosition()) because ParseJSON() triggers an exception.

Code: Select all
If ParseJSON(0, "[1, 2, 3, 4, 5")
   For i = 0 To JSONArraySize(JSONValue(0)) - 1
      Debug GetJSONInteger(GetJSONElement(JSONValue(0), i))
   Next i

Thanks in advance & Greetings ... Peter
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 3 guests