Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
aselder opened this Issue · 0 comments

1 participant

@aselder

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.
{"a":Infinity}
(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.