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

Disallow using an object or an array as a name of an object member. #143

Closed yasuoka closed 5 years ago

yasuoka commented 5 years ago

In section "4 Object" of RFC 7159, a name of a object member is a string. Even in current implementation, using a primitive is disallowed already in JSMN_STRICT. I'd suggest disallowing an object or an array as well.

pt300 commented 5 years ago

fix applied