Skip to content

Instantly share code, notes, and snippets.

@Tho85

Tho85/json_parse.rb

Created Feb 11, 2013
Embed
What would you like to do?
require 'json'
require 'json/generic_object'
JSON.parse '{"json_class":"JSON::GenericObject", "foo":"bar"}'
# => #<JSON::GenericObject foo="bar">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment