Guest User

Untitled

a guest
Jul 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
  2. " => "4130-02"}}]}.to_json)
  3. => {"one"=>[{"two"=>{"three"=>"four", "value"=>"4130-02"}}]}
  4.  
  5. >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
  6. " => "4130-02-"}}]}.to_json)
  7. => {"one"=>[{"two"=>{"three"=>"four", "value"=>"4130-02-"}}]}
  8.  
  9. >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
  10. " => "4130-02-0"}}]}.to_json)
  11. => {"one"=>[{"two"=>{"three"=>"four", "value"=>"4130-02-0"}}]}
  12.  
  13. >> Crack::JSON.parse(structure = {"one" => [{"two" => {"three" => "four", "value
  14. " => "4130-02-00"}}]}.to_json)
  15. Crack::ParseError: Invalid JSON string
  16. from E:/projects/dot-media/giddi/trunk/vendor/gems/crack-0.1.4/lib/crack
  17. /json.rb:14:in `parse'
  18. from (irb):26
Add Comment
Please, Sign In to add comment