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

strip backslashes? #189

Closed paxter closed 4 years ago

paxter commented 4 years ago

Should backslashes in strings be stripped? I noticed that backslashes are used to escape the " within strings and jsmn keeps them. I'm not sure whether jsmn should handle such cases or the overlaying software. So I started this issue.

Thanks in advance and thanks for this great project. :)

pt300 commented 4 years ago

As of now JSMN does not unescape JSON strings, so it has to be done manually. In the future this might be an optional feature of JSMN tho. For more informations refer to Strings section of RFC-8259.

paxter commented 4 years ago

Ah, good to know that. Thanks for your fast reply and the hint with the RFC.