Linked Questions

0
votes
1answer
1k 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
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
2answers
348 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; ...
1
vote
2answers
223 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":...
-3
votes
1answer
354 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
239 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
179 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", "...
-2
votes
1answer
62 views

How to create JSON Generator with apex in post api [duplicate]

I'm new in Apex and we have a requirement, Need to send a record from Salesforce to an external system using Rest API whenever a record is created in Salesforce, I need to send a couple of SF fields ...
0
votes
1answer
68 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 ...
0
votes
0answers
71 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
52 views

error: Illegal assignment from Object to Map<String,String> [duplicate]

String input = '{"orgId":{"isRequired":"true", "valiateDataType": "Id"},"numOfVehicles":{"isRequired": "true"}}'; Map<...
1
vote
0answers
44 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
36 views

Build JSON request body for Apex REST POST API Callout using JSONGenerator class. This is my first Apex REST API so need help to build JSON body [duplicate]

json2Apex Class public class processingObj { public class processReq { public String applId; public String DOB; public businessAppl businessAppl; public List<...
0
votes
0answers
31 views

Parse JSON array of ids into payload using ssjs [duplicate]

I need to create a json payload to send data in this format { "ids":[ "6375502", "637550", "6376391" ], "type":"MrnId&...
0
votes
0answers
31 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 '...

15 30 50 per page