Yajl can't decode it's own output when there is a BigDecimal(Infinity) involved. #88

aselder opened this Issue Nov 4, 2011 · 0 comments


None yet
1 participant

aselder commented Nov 4, 2011

Fire up IRB:

Yajl::Parser.parse(Yajl::Encoder.encode({"a" => BigDecimal.new("Infinity")}))

lead to:

Yajl::ParseError Exception: lexical error: invalid char in json text.
(right here) ------^

Infinity is not legal JSON and the parser correctly flags it. However the encoder shouldn't be spitting this out.

Ruby 1.9.2-p290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment