-
-
Save arun12209/07a7c847509bbd75b5f5513045ea58e2 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
String jsonString = '{ "name": "John Doe", "age": 35, "address": { "street": "123 Main St", "city": "Anytown", "state": "CA", "zip": "12345" }, "phoneNumbers": [ { "type": "home", "number": "555-555-1234" }, { "type": "work", "number": "555-555-5678" } ] }'; | |
Example json = (Example)JSON.deserialize(jsonString, Example.class); | |
System.debug(json); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment