Oj#load converts ":text:" string to :"text:" symbol #65

jcbpl opened this Issue Feb 6, 2013 · 2 comments


None yet

2 participants

jcbpl commented Feb 6, 2013

ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.0]

irb(main):001:0> require 'oj'
=> true
irb(main):002:0> Oj::VERSION
=> "2.0.3"
irb(main):003:0> Oj.load(%({"body":":text:"}))
=> {"body"=>:"text:"}
irb(main):004:0> require 'json'
=> true
irb(main):005:0> JSON.load(%({"body":":text:"}))
=> {"body"=>":text:"}

I'm not sure if this is the intended behavior, or a particular mode, or a bug.

jcbpl commented Feb 6, 2013

Whoops, I think I was using the mode option incorrectly. Sorry!

@jcbpl jcbpl closed this Feb 6, 2013
ohler55 commented Feb 7, 2013

No problem.

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