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

JSONErrorX() doesn't work

by Peter Thu Jun 27, 2019 2:45 pm

Hello,

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
Else
   JSONErrorMessage()
EndIf


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

Who is online

Users browsing this forum: No registered users and 3 guests