You need to sign in to do that
Don't have an account?
NagSha
insert json values into contact
// i need to update the salesforce_key in the following json with a custom field in account.
{"JrmiStatus":{"Status":"Local_DB","Error_Category":"Fail","JRM_Key":"001Q000000YJZFsIAP","JRM_Object":"Account","LocalDB_Key":"5109929","LocalDB_Table":"sch_rec","Error_Message":"Record already exist"},"Responses":[{"Salesforce_Key":"001Q000000YJZFsIAP","JRM_Object":"Account","JRM_Field":"External_ID__c","LocalDB_Key":"5109929"}]}
public class JSON2Apex { public class Responses { public String Salesforce_Key; public String JRM_Object; public String JRM_Field; public String LocalDB_Key; } public JrmiStatus JrmiStatus; public List<Responses> Responses; public class JrmiStatus { public String Status; public String Error_Category; public String JRM_Key; public String JRM_Object; public String LocalDB_Key; public String LocalDB_Table; public String Error_Message; } public static JSON2Apex parse(String json) { return (JSON2Apex) System.JSON.deserialize(json, JSON2Apex.class); }