Diagnosing error 17 on dim load of json data

Started by Allen Miglore, May 29, 2019, 03:03:22 PM

Previous topic - Next topic

Allen Miglore

I am trying to parse a fairly large json response from a web service, and just installed the very latest pxplus 2019 to test with. 

Scanning the json string as best I can visually (it's about 2.5mb), I don't see anything but simple json objects, arrays, strings, and numbers (no nested arrays, for example, which have caused errors for me before).  The json does pass validation at jsonlint.com.  But I get an error 17 when trying to use 'dim load' on it.

Is anyone aware of a system variable or tcb() function or whatever that would provide any hint about where in the string the error occurs?

If anyone wants to look at the json, it is here:

https://unform.com/download/test.05292019.json


Mike King

You have floating point values (n.nnnnne+-n) which our JSON converter does not like as it assume numeric data is composed of 0-9, ., plus sign.

Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com


Mike King

Just an FYI -- I just added this to be addressed with the next release.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com