Skip to content

Instantly share code, notes, and snippets.

@olopsman
Created October 2, 2019 10:30
Show Gist options
  • Save olopsman/b9db949a94686e89e5ce7e684e7a6abf to your computer and use it in GitHub Desktop.
Save olopsman/b9db949a94686e89e5ce7e684e7a6abf to your computer and use it in GitHub Desktop.
Apex sample GetPerson.parse
String input = '[{"_id":"1","name":"paulo","age":42, "car" : {"model" : "outlander", "year" : "2016"}, "kids" : ["penny", "padma", "amber", "pauline"]}, {"_id":"2","name":"tin","age":40, "car" : {"model" : "crv", "year" : "2004"},"kids" : ["mary", "sophie", "patrice", "laeticia"]}]';
List<GetPerson> gpList = GetPerson.parse(input);
system.debug(gpList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment