lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

yajl incorrectly accepts values outside of arrays and objects #154

Open otherwiseguy opened 9 years ago

otherwiseguy commented 9 years ago

JSON does not technically allow values outside of objects or arrays. yajl should at least be configurable to reject these values.

JSON-text = object / array object = begin-object [ member ( value-separator member ) ] end-object array = begin-array [ value ( value-separator value ) ] end-array