Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created January 21, 2023 15:09
Embed
What would you like to do?
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