Parsing error 1002

Discussions relating to the ScottKlement.com port of the open source YAJL JSON Reader/Generator. This includes the YAJL tool as well as the YAJLR4, YAJLGEN, YAJLINTO and YAJLDTAGEN add-ons from ScottKlement.com. http://www.scottklement.com/yajl/
Post Reply
Barbara_H
Posts: 8
Joined: Sat Nov 04, 2023 8:18 pm

Parsing error 1002

Post 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.
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: Parsing error 1002

Post 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?
Barbara_H
Posts: 8
Joined: Sat Nov 04, 2023 8:18 pm

Re: Parsing error 1002

Post 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.
Post Reply