Linked Questions

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
703 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 ...
0
votes
1answer
168 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
2answers
290 views

Help Parsing JSON Body

Im trying to get the Id and Name from JSON Body that I requested, and put the value into custom object { "id": "ab24ddb8-f1ef-4cca-ae72-9f20f5975332", <-- THIS "name": "App Dev Account", <-- ...
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
291 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 ...
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
2answers
162 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
1answer
33 views

Apex to parse JSONArray stored in "Custom Metadata Type"

I'm trying to parse the JSONArray that has been stored in the Custom Metadata Types. 1.The JSONArray(Stored in Custom Metadata) looks like, [{ "time": "5 AM", "leads&...
0
votes
1answer
715 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
2answers
746 views

How to deserialize the Json list input

I have the a JSON string which contains of User,Account and contact details. How do I deserialize the JSON using Apex. Json input is given below: [ { \"us\":{ \"attributes\":{ ...
0
votes
0answers
44 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
45 views

Custom Merge Field Named Credential Apex

I am integrating with GoToWebinar using a Named Credential to make Apex Callouts. While the Authentication piece is working well, during the Callback to get the access token, there are some additional ...
0
votes
0answers
36 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",&...
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":"", "...

15 30 50 per page