Created
October 14, 2011 16:52
-
-
Save superfell/1287653 to your computer and use it in GitHub Desktop.
deserialize json to map with Apex
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
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