zserge / jsmn

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

If you are dealing with JSON that varies in size greatly, you can reallocate the tokens array based on feedback from the parser. If parser returns `JSMN_ERROR_NOMEM` you can extend the tokens array and retry parsing. The parser will continue from where it left off. #204

Closed noon2a closed 3 years ago

noon2a commented 3 years ago

If you are dealing with JSON that varies in size greatly, you can reallocate the tokens array based on feedback from the parser. If parser returns JSMN_ERROR_NOMEM you can extend the tokens array and retry parsing. The parser will continue from where it left off.

Originally posted by @pt300 in https://github.com/zserge/jsmn/issues/201#issuecomment-735745957