Linked Questions

0
votes
1answer
239 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
47 views

Apex to parse JSONArray stored in "Custom Metadata Type" [duplicate]

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
0answers
48 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
41 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
1answer
316 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
0answers
48 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
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
50 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
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
770 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
300 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
2answers
171 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 ...
-2
votes
1answer
187 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
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
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","...
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 ...
0
votes
2answers
785 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\":{ ...
-1
votes
1answer
444 views

how to read json string [closed]

"[\"Key 1:\",\"Key 2:\",\"Key 3:S300KTP\",\"Key 4:K310\",\"Key 5:Kadapa\",\"Key 1:\",\"Key 2:\",\"Key 3:S526KTP\",\"Key 4:K310\",\"Key 5:Kadapa\"]" How can I read this json format? I have tried as ...
3
votes
1answer
708 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 ...