Skip to content

Commit

Permalink
Merge pull request intridea#33 from kyledrake/master
Browse files Browse the repository at this point in the history
Make note of symbolize_keys in README
  • Loading branch information
sferik committed Jan 28, 2012
2 parents 01f6bd4 + 49d4f46 commit 6114efe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ You use it like so:
MultiJson.engine = :yajl
MultiJson.decode('{ "abc":"def" }') # decoded using Yajl

MultiJson.decode('{ "abc":"def" }', :symbolize_keys => true) # for symbol keys: {:abc => "def"}

MultiJson.engine = :json_gem
MultiJson.engine = MultiJson::Engines::JsonGem # equivalent to previous line
MultiJson.encode({ :abc => 'def' }) # encoded using the JSON gem
Expand Down

0 comments on commit 6114efe

Please sign in to comment.