lloyd / yajl

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

Allowed parsing top-level numbers followed by EOF #162

Open cyanogilvie opened 9 years ago

cyanogilvie commented 9 years ago

It isn't possible for the parser to detect a truncated document in this case but this patch takes the position that it is a worse failing to not be able to parse top-level numeric values at all, when other atomic types work.

Addresses #95