Linked Questions

0
votes
1answer
253 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....
-3
votes
1answer
116 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 ...
0
votes
1answer
48 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
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
33 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
25 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
21 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
17 views

Json parsing in Apex [duplicate]

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

How to parse the below nested lookup JSON to get all the ObjectM attributes in one list [duplicate]

{ "Quote_I": { "Quoteid": "a835eaa1-edd0-4f90-88d2-d907bb61b770", "QLI": [ { "quoteLineItemId": "", "IsConfigurationValid": "true", ...
0
votes
2answers
25 views

Why cant I cast my object to a wrapper?

I have a list of Objects that I am trying to cast as with my wrapper class, when I run this I get the following error: System.TypeException: Invalid conversion from runtime type Map<ANY,ANY> to ...
1
vote
2answers
81 views

How to parse inner child aray/object?

please do not close my case. I have submitted the same question couple of times yesterday, but someone has posted a link. Am sorry for that, am very new to this coding. But i managed to print all the ...
-1
votes
1answer
80 views

FATAL_ERROR System.JSONException: No content to map to Object due to end of input in apex

I am trying to parse JSON into a string format in apex.The JSON format is { "GenerationTime": "20200119170533", "ResponseCode": "MSK", "ValidationExceptions": [{ "...
1
vote
1answer
59 views

Responsive JSON data

Hi my requirment is : In RestExplorer, Get Method, When i pass below URL # /services/apexrest/partyInquiry?recordId=a1K2F000000Wsom I can get Results below Structure : { "caseInfo": { &...
0
votes
1answer
33 views

Help with JSON.deserializeUntyped

I am parsing JSON that is coming back from REST callout, and when running, it is throwing this error: attemp to de-reference null object. The issue seems to be with how I am parsing the JSON, but I ...