Linked Questions

0
votes
1answer
839 views

How to get Nested JSON values [duplicate]

EDIT: Object result = JSON.deserializeUntyped(payload); if (result instanceof Map<String, Object>) { Map<String, Object> resultMap = (Map<String, Object>)result; system....
0
votes
2answers
161 views

Parse underscore named attribute from response's wrapper [duplicate]

I'm receiving some JSON from an API. I created a Wrapper like this: public class Wrapper{ public class cA{ List<cB> recordsB; public class cB{ cC recordC; ...
0
votes
1answer
54 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 ...
-3
votes
1answer
230 views

Sending Salesforce fields in JSON to external system Json generator [duplicate]

I have less experience in coding. I have a requirement to send Salesforce record to External system whenever we create a record in SF, create an incident in External system. I wrote a class and a ...
1
vote
1answer
96 views

Expected JSON object to deserialize apex parameter from at [] [duplicate]

I develop an Apex REST web service in Salesforce and I would like to test it with Postman. Unfortunately, I get an error message than I don't understand: Expected JSON object to deserialize apex ...
0
votes
1answer
104 views

Parsing nested json in apex [duplicate]

I have an input json like the following. It has contact fields and a nested object for another contact. I'm using Postman to send requests. { "Id": "0036D00000H24bHQAR", "...
0
votes
1answer
48 views

Help with storing JSON data [duplicate]

I'm new to salesforce and I have to parse this JSON and store the values in variables. I have used json2apex which generated 2 classes for me. When I use system.debug I can see it's reading the JSON ...
1
vote
2answers
35 views

Best practice for parsing REST API response [duplicate]

I am trying to connect to an external system via REST API. The below is the JSON response. {"coord":{"lon":-0.1257,"lat":51.5085}, "weather":[{"id":...
0
votes
0answers
43 views

Update the records from JSON string in apex [duplicate]

I have a JSON string in the format '{"key1":{"Field1__c":"false", "Field2__c":"false","Id":"XXXXXXXXXX909"}}' I need to update the ...
0
votes
0answers
39 views

How to Desrialize a complex object in apex [duplicate]

I have a json put as below. can someone help me to deserilase it in apex? without class? { "QueryResult": { "ContractInfo": { "ID": "1684409", ...
0
votes
0answers
27 views

Malformed Json Error on http request [duplicate]

Hey all I am getting an error and cannot for the life of me figure out why. Thanks in advance for help! Error is: Failed to invoke future method 'public static void pushToLead2(String)' on class '...
0
votes
0answers
27 views

REST callout to another org - unable to access custom field due to it ending with __c [duplicate]

I am making a callout from my org to the REST endpoint of another org in our business. This is using the standard query endpoint /services/data/v48.0/query?q=SELECT+Fields+FROM+Contact+WHERE+.... ...
1
vote
0answers
27 views

Parsing of Json response from Tooling API code [duplicate]

Please have a look through the attached debug log Below is my code:- Apex Class:- Http http = new Http(); HttpRequest request = new HttpRequest(); request.setEndpoint(Url....
0
votes
0answers
23 views

Required Inputs on @RestResource(URLMapping) httpgetResponse [duplicate]

can someone provide any Idea on below requriement: my requirment is : We received JSON data ( complex have Tree structured more than 300 values) , Based on JSON data , need to generate Response . For ...
0
votes
0answers
20 views

Json parsing in Apex [duplicate]

I have a sample json like this: { "userStory" : {"name":"US41235", "referenceNumber":"xx", "projectName":"yy"}, "...

15 30 50 per page