Skip to content

Commit

Permalink
Make note of symbolize_keys in README
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledrake committed Jan 26, 2012
1 parent 01f6bd4 commit 49d4f46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
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 49d4f46

Please sign in to comment.