Page 1 of 1

Parsing error 1002

Posted: Wed May 29, 2024 4:19 am
by Barbara_H
I am getting parsing error 1002 using parser YAJLINTO after 100000 bytes parsed. Is this a limitation of the parser?


YAJL parser status 0 after 100000 bytes
YAJL parser final status: 2
YAJL error: parse error: premature EOF

ReportError, RC = 1002
- Bytes parsed: 100000
Terminating due to error
Press ENTER to end terminal session.

Re: Parsing error 1002

Posted: Wed May 29, 2024 4:36 am
by Scott Klement
I'm not aware of any such limitations. Is it possible that your JSON data is loaded into a 100000 variable before you call DATA-INTO, and that the 100000 isn't large enough?

Re: Parsing error 1002

Posted: Wed May 29, 2024 9:00 pm
by Barbara_H
I was using HTTP_String() to retrieve the JSON data, changed it to HTTP_req() and it works.

Thanks for the response.