Skip to content

Instantly share code, notes, and snippets.

@olopsman
Created October 2, 2019 10:11
Show Gist options
  • Save olopsman/e65ef6dad7aa5d6558b1bd6fa1b2962d to your computer and use it in GitHub Desktop.
Save olopsman/e65ef6dad7aa5d6558b1bd6fa1b2962d to your computer and use it in GitHub Desktop.
Apex JSON deserializeStrict
String input = '{"name":"paulo","age":42, "car" : {"model" : "outlander", "year" : "2016"}}';
Account a = (Account) JSON.deserializeStrict(input, Account.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment