function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prathap I am :)Prathap I am :) 

JSON Parsing from facebook

Hi guys ,
I need help on JSON parsing
Please find the following JSON Snippet and please try to solve it

Work__c is an object in my org & it is having employee_name__c ,position_name__c ,location_name__c , start_date__c,end_date__c fields
so i need to create multiple work history records from json data

"work": [
      {
         "employer": {
            "id": "184345499708",
            "name": "KVP Business Solutions"
         },
         "location": {
            "id": "106377336067638",
            "name": "Bangalore, India"
         },
         "position": {
            "id": "112569935464410",
            "name": "Salesforce Developer"
         },
         "start_date": "2013-12-31"
      },
      {
         "employer": {
            "id": "150588161629708",
            "name": "GSS Infotech"
         },
         "location": {
            "id": "115200305158163",
            "name": "Hyderabad, Andhra Pradesh"
         },
         "position": {
            "id": "112569935464410",
            "name": "Salesforce Developer"
         },
         "start_date": "2011-07-01",
         "end_date": "2013-11-29"
      }
   ]
Pat PattersonPat Patterson
What have you tried so far?