>>>>>
Try to use quirks_mode

  JSON.parse "\"foo\"", quirks_mode: true
  => "foo"
<<<<

WORKS!  That's brilliant.  It even works in jRuby!

And, also .... not documented in ri ;)

which is annoying. Can anyone tell me when quirks_mode was introduced?  This is for a Gem, and while it literally has one (1) user -- me -- I like to be comforted by the fantasy that someone else other than me might find it useful one day; for all I know they will demand Ruby 1.9 support...




Click here to view Company Information and Confidentiality Notice.<http://www.jameshall.co.uk/index.php/small-print/email-disclaimer>

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>