zserge / jsmn

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

Last value is not properly read #176

Closed zviered closed 4 years ago

zviered commented 4 years ago

I tried the following string: {"Header":{"Magic":3405655469,"Code":2,"Length":24},"Bar":0,"Offset":12288,"Data":4660}

For some reason, the value of "Data" is 4 and not 4660. This happens only in the last token.

Thank you.

pt300 commented 4 years ago

Mind sharing more informations about your setup? I was not able to reproduce the problem with the data you provided.

zviered commented 4 years ago

Sorry. My mistake. Works fine.