zserge / jsmn

Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
MIT License
3.65k stars 778 forks source link

JSMN_ERROR_NOMEM issue: multiple layers of JSON structure #155

Closed jk78346 closed 5 years ago

jk78346 commented 5 years ago

Does jsmn support parsing multiple layers of JSON structure? When I try a 880KB .json file, it fails.

pt300 commented 5 years ago

Just make sure you allocate large enough array of tokens

pt300 commented 5 years ago

If you mean something like multiple objects at root then it's not really well handled as far as I know. Will change in the future tho.