Created
August 15, 2012 19:49
-
-
Save akirill0v/3363047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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