Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSON to Ruby Hash Parser

require 'json'

my_hash = JSON.parse('{"hello": "goodbye"}')
puts my_hash["hello"] => "goodbye"
Source by ruby-doc.org #
 
PREVIOUS NEXT
Tagged: #JSON #Ruby #Hash #Parser
ADD COMMENT
Topic
Name
3+5 =