Linked Questions

0 votes
2 answers
959 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\":{ ...
user avatar
12 votes
1 answer
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 ...
user avatar
  • 1,913
3 votes
1 answer
722 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 ...
user avatar
0 votes
1 answer
94 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&...
user avatar
0 votes
1 answer
360 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 ...
user avatar
  • 2,066
0 votes
1 answer
383 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 ...
user avatar
0 votes
1 answer
878 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": "...
user avatar
0 votes
1 answer
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","...
user avatar
0 votes
1 answer
7k 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 ...
user avatar
  • 1,496
-1 votes
1 answer
452 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 ...
user avatar
  • 716
-2 votes
1 answer
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) { ...
user avatar
  • 3
0 votes
0 answers
62 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 ...
user avatar
0 votes
0 answers
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",&...
user avatar
0 votes
0 answers
53 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":"", "...
user avatar
0 votes
0 answers
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 ...
user avatar

15 30 50 per page