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

[Done] 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
Fred
Site Admin
 
Posts: 1194
Joined: Mon Feb 24, 2014 10:51 am

Re: JSONErrorX() doesn't work

by Fred Fri Aug 23, 2019 3:38 pm

Fixed the 3 commands
User avatar
Peter
 
Posts: 650
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: JSONErrorX() doesn't work

by Peter Tue Oct 01, 2019 2:58 pm

Fred wrote:Fixed the 3 commands

Confirmed. Works in V2.22 as expected.

Thanks & Greetings ... Peter
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests