Linked Questions

0
votes
1answer
5k views

Deserialize JSON to Apex class [duplicate]

I have the following JSON [{"Name":"Global Media","Phone":"(905) 555-1212","Id":"0016A0000035QXuQAM","Contacts":[{"AccountId":"0016A0000035QXuQAM","Id":"0036A000002BnDpQAK","LastName":"White","...
0
votes
1answer
6k views

Parse Json String to object [duplicate]

Can anyone help me understand on how to parse the response in to a JSON object from string. String s = [{"id":"12345","Account":"31338","name":"Accounttest","subaccounts":[{"id":"39658"}]}] I'm ...
0
votes
2answers
1k views

How to iterate below JSON in salesforce [duplicate]

Need to iterate WorkorderID .......values ....and these are List Objects which has List of Map and values is an array [] "answers": [ { "labelFullPath": { "path": "...
0
votes
1answer
678 views

JSON string unserialize to APEX using wrapper class [duplicate]

I'm not able to get rows list....it is coming null from below code. public class ParsingTest1 { public ParsingTest1() { String jsstring = '{"totalsForAllResults": {"users": "...
0
votes
1answer
143 views

How to loop trough second level deserializeUntyped Json String [duplicate]

PLEASE NOTE: deserializeUntyped not deserialize! I currently loop trough a jsonPayload which is working fine for the nodes of the first level.How can I achieve this for the node(s) of the second level ...
0
votes
1answer
273 views

How to deserialize the following JSON to get the list of values? [duplicate]

I have used the code below to deserialize the json but throwing an error. Map<String,Object> root =(Map<String,Object>)JSON.deserializeUntyped(res.getBody())); "Callout error Invalid ...
-2
votes
1answer
186 views

i want to parse the following JSON String. Please help [duplicate]

I have two objects MDM_Object_Mapping__c(parent) and MDM_Field_Mapping_ims__c(chaild) are in MD relationship. My JSOn String is: public static List < JSON3Apex > parse(String json) { ...
0
votes
2answers
157 views

How to deserialize my json result? [duplicate]

I'm calling one rest API and it's working properly but I'm not able to deserialize it's reesult. Below in mentioned my code and what response in I'm getting,I want city value in city variable and ...
0
votes
2answers
37 views

I need to deseralize this json responce and get the attributes to display in pageblock table [duplicate]

{ "id": "LC-NCLDMHG", "created": "2018-06-12T18:59:00-07:00", "type": "longForm", "source": "Zillow", "price": 70, "sender": { "emailAddress": "testborrower@gmail.com", ...
0
votes
0answers
49 views

JSON Parser in Apex [duplicate]

The image shows my JSON Parser Value. I've attached my apex code below. While I run that code I'm getting the value which I've lined it in black color. But I need to get the value which I've lined in ...
0
votes
0answers
47 views

How to parse json string in map or list [duplicate]

Please help for parse json response. My json String is { "result":[ { "parent":"", "made_sla":"true", "caused_by":"", "watch_list":"", "...
0
votes
0answers
35 views

How to extract a specific URL value from JSON response [duplicate]

I am sending a API request to a third party system called quip and I am trying to extract a particular URL from the JSON response that I am receiving on that call, through apex code. The JSON response ...
0
votes
0answers
32 views

How to extract numbers from json string in apex [duplicate]

JSON Body { "60":{"name":"test_Z","provider":"21","status":"enabled"}, "61":{"name":"test_S",&...
12
votes
1answer
1k views

What is the correct JSON/Apex Strategy?

Summary I'm having a lot of trouble deserializing a JSON file into apex. The problem is not in how to deserialize a JSON string, but rather what type of apex objects I should be using. I don't come ...
3
votes
1answer
698 views

scheduled apex to query and create new sObject

I am currently working on creating a scheduled apex to query an external json case objects and insert these objects in salesforce. I am quite new to this framework and quite stuck. The below is a how ...

15 30 50 per page