yajl-ruby
yajl-ruby copied to clipboard
The parser swallows the next parsed value after parsing a number.
When parsing a stream of JSON values the parser swallows the next parsed value after parsing a number.
I made gist with a spec (so you can replicate the behaviour: https://gist.github.com/988743
Multiple values can be swallowed, e.g.:
irb>> (Yajl::Parser.new).parse('1.0 2.0 3.0 4.0 5.0') {|x| p x} 1.0 => nil