Skip to content

Instantly share code, notes, and snippets.

@superfell
Created October 14, 2011 16:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superfell/1287653 to your computer and use it in GitHub Desktop.
Save superfell/1287653 to your computer and use it in GitHub Desktop.
deserialize json to map with Apex
String j = '{ "bob": "bobby" }';
Map<String, String> b = (Map<String,String>) JSON.deserialize(j, Map<String,String>.class);
System.debug(b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment