Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
- " => "4130-02"}}]}.to_json)
- => {"one"=>[{"two"=>{"three"=>"four", "value"=>"4130-02"}}]}
- >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
- " => "4130-02-"}}]}.to_json)
- => {"one"=>[{"two"=>{"three"=>"four", "value"=>"4130-02-"}}]}
- >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
- " => "4130-02-0"}}]}.to_json)
- => {"one"=>[{"two"=>{"three"=>"four", "value"=>"4130-02-0"}}]}
- >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
- " => "4130-02-00"}}]}.to_json)
- Crack::ParseError: Invalid JSON string
- from E:/projects/dot-media/giddi/trunk/vendor/gems/crack-0.1.4/lib/crack
- /json.rb:14:in `parse'
- from (irb):26
Add Comment
Please, Sign In to add comment