Skip to content

Instantly share code, notes, and snippets.

@akirill0v
Created August 15, 2012 19:49
Show Gist options
  • Save akirill0v/3363047 to your computer and use it in GitHub Desktop.
Save akirill0v/3363047 to your computer and use it in GitHub Desktop.
require 'multi_json'
MultiJson.load('{"abc":"def"}') #=> {"abc" => "def"}
MultiJson.load('{"abc":"def"}', :symbolize_keys => true) #=> {:abc => "def"}
MultiJson.dump({:abc => 'def'}) # в JSON
MultiJson.dump({:abc => 'def'}, :pretty => true) # + преобразует в наглядный вид
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment