Created
          October 2, 2019 10:30 
        
      - 
      
- 
        Save olopsman/b9db949a94686e89e5ce7e684e7a6abf to your computer and use it in GitHub Desktop. 
    Apex sample GetPerson.parse
  
        
  
    
      This file contains hidden or 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 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