yajl-ruby icon indicating copy to clipboard operation
yajl-ruby copied to clipboard

The parser swallows the next parsed value after parsing a number.

Open fd opened this issue 14 years ago • 1 comments

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

fd avatar May 24 '11 13:05 fd

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

pkoppstein avatar Feb 03 '12 05:02 pkoppstein