Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

aselder opened this Issue · 0 comments

1 participant


Fire up IRB:

Yajl::Parser.parse(Yajl::Encoder.encode({"a" =>"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
Something went wrong with that request. Please try again.