Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [json]

JSON, or JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

ListAction - Integration Procedure

Please, I'm new to Integration Procedures. I'm trying to implement the solution described below: Group By a field with a DataRaptor Transform I don't get it for the 3.2 Step on the answer. How can I ...
user149765's user avatar
3 votes
1 answer
48 views

Salesforce Apex Access Nested Lists after Parsing JSON with Wrapper Class

I think I am just missing something simple - using very simplified and generic code for example. I have some JSON: { "level1":[ { "level2":{ "id&...
Dar Wright's user avatar
1 vote
1 answer
28 views

How to Correctly Exclude Checkout Day in Daily Rate Calculation with AMPscript?

I am using AMPscript in Salesforce Marketing Cloud to parse serialized JSON data for hotel reservations. Each entry contains start and end dates along with a daily rate. I need to calculate and ...
Matt Black's user avatar
1 vote
1 answer
150 views

Group By a field with a DataRaptor Transform

I'm attempting to group Quote Lines in the JSON output of a DataRaptor Extract with a Transform and am unsure if this is possible without an Integration Procedure. I currently have Quote Lines ...
ivcv's user avatar
  • 13
3 votes
1 answer
228 views

Apex (de)serialize JSON with Map<String, Object> properties

My Apex code talks to the OpenAI API which has a Message object. This is the Apex Wrapper class for Message: public class Message { public String id; public String role; public String run_id; ...
Robert Sösemann's user avatar
1 vote
0 answers
47 views

Callback not executing after json deserialization

I'm running into a strange problem. The code is completing fine and sending the request/getting response back, handling the response correctly. I am just unable to show the "Success" toast ...
ThatGuy's user avatar
  • 85
0 votes
1 answer
67 views

Unexpected character ('�' (code 65533 / 0xfffd)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

I am making a POST call and receiving a 200, but getting the below error when I try to parse the response. The call works in Postman and I can read the JSON response. I am guessing its related to the ...
Cincopation's user avatar
0 votes
0 answers
23 views

SOQL CRMA BINDING error

I have this query and it functions correctly until i select a filter value. Been trying to fix it and don't understand what could be the error or if there is limitation for SOQL and CRMA functionality....
Sandeepan Mukherjee's user avatar
0 votes
1 answer
49 views

Formatting field value (string) as JSON in Flow - Error: The formula expression is invalid: Syntax error. Extra '"SampleJSON"'

I'm trying to use flow to format field values into JSON format via formula but am receiving the following error when checking syntax: The formula expression is invalid: Syntax error. Extra '"...
patriciajlim's user avatar
1 vote
0 answers
35 views

Replace non-breaking whitespace character in JSON data in SF Flow formula

I have a Flow in Salesforce that parses a Long Text field with JSON data in it. The flow then uses the Unofficial SF JSON Mapping Component to map the data in the JSON into a collection variable. I ...
Roger Miller's user avatar
0 votes
1 answer
26 views

Unable to Wrap the Array of Json Object in apex using wrapper class

I am unable to wrap the Array of JSON object in apex using wrapper JSON { "personInfo": { "firstName": "Sudhanshu", "lastName": "...
ZeroX's user avatar
  • 21
0 votes
1 answer
61 views

Strange behavior JSON data

In a data extension we receive some basic JSON data. Like this: [ { "adressoort": 1, "is_ontvangstadres": "true", "persoonsnaam": "Test", ...
Martijn e's user avatar
  • 143
0 votes
1 answer
53 views

SOQL - Relationship extract json from child object and join picklist label

This soql SELECT Id, Name, (SELECT CountryISOCode__c, Name, Role__c FROM Person__r) FROM Market__c returns a row that looks like this: Id NAME Person__r a081.. C1 [{"A":"foo", &...
surfmuggle's user avatar
0 votes
1 answer
93 views

How to Add Contact Id into JSON Payload for Apex Testing

I am trying to test a wrapper class for a platform event/platform event trigger flow and I am not sure how to add a contact record Id I created earlier in the test class to the JSON string. Update The ...
Diego Delgado's user avatar
0 votes
0 answers
53 views

External Service with nested objects - How do you set input to the Action in Flow

I setup an external service to execute a Post callout through a Flow Action. The problem is I can't set the input in the action to an Apex-Defined variable which has two variables nested in it. I have ...
DevAndy's user avatar
1 vote
1 answer
78 views

Type cannot be serialized

our org use a managed package PCK1. This package has the following class: global class Parent { global class Child { global string field1; global string field2; global ...
tannana's user avatar
  • 11
0 votes
1 answer
53 views

After Enabling the namespace class not executed from LWC

I have a LWC that passed the parameter as an Object, which worked fine. However, after enabling the org's namespace, the apex method was not executed with that object parameter and threw an Internal ...
Naveen Tiwari's user avatar
0 votes
1 answer
137 views

HTTP Response data being Truncated

I am making a http request and getting response in JSON . When I am converting it to String using request.toString() but getting the truncated response response sample(This is the part of response ...
Sahil Gupta's user avatar
0 votes
1 answer
124 views

Parsing Google Maps JSON with APEX [duplicate]

I work for a small non-profit that helps young people from disadvantaged backgrounds get a start in STEM careers. We're looking to match participants with placements based on location parameters so I ...
tsuimark's user avatar
1 vote
2 answers
125 views

JSON.deserializeUntyped Error : System.JSONException: For input string

I have a simple REST API call sent from apex class, I a trying to handle the response body with the bellow code: String jsonPayLoad = '{"Accts":[{"Name":"ABC","Exp&...
Raphael D's user avatar
  • 616
0 votes
0 answers
45 views

Is it possible to maintain the order of json string using JSON.serialize? [duplicate]

I have a simple json format that I am trying to practice for the complex format that I am going to make. But it seems like, I'm not able to maintain the order when using the JSON.serialize method ...
Johan's user avatar
  • 1
0 votes
1 answer
62 views

Multiple Items in HTTP Request Body Using wrapper [duplicate]

public class test{ public Boolean one{ get; set; } public Boolean two{ get; set; } public Boolean three{ get; set; } public Boolean four{ get; set; } public ...
SFL's user avatar
  • 1
-1 votes
1 answer
45 views

Deserialize JSON in apex. JSON has object array [duplicate]

I have a JSON which I'm trying to deserialize into the apex class. JSON structure : { "resourceType": "Bundle", "entry": [ { "resource": { ...
Salesforce Dev's user avatar
0 votes
0 answers
30 views

Upload user photo using REST API [duplicate]

I have a problem uploading a user's photo using the REST API. I follow the documentation https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/intro_input.htm#fileUploadExample ...
Piotr W's user avatar
0 votes
0 answers
61 views

Can you do an IF conditional from a JSON payload that looks for a specific value in the key value pair?

I've got a JSON payload that has an itemStatus in there. The itemStatus is either "Cancelled", "Backordered", or "". I need to strikethrough in CSSthe Item Name if the ...
Erik B's user avatar
  • 65
1 vote
1 answer
164 views

How do you use Salesforce Data Cloud data for personalization in SFMC?

This question is more from an understanding perspective. I am trying to implement omnichannel solutions for a client using Saleforce Data Cloud (SDC) as CDP and SFMC for deployment of messages. The ...
Anay Shrikar's user avatar
1 vote
1 answer
413 views

JSON.serialize() Map<String, Object> changes Map structure

I have a Map<String,Object>() which I am trying to store in a text field for a subsequent asynchronous operation. My idea was for the following async operation to query for this map and re-use ...
Arthlete's user avatar
  • 4,907
1 vote
1 answer
721 views

ssjs System.Collections.Generic.Dictionary`2[System.String,System.Object]

I have a SSJS code that i am running SFMC cloudpages. The code is to do a HTTP.GET call to a url and then parse the JSON response.when trying to write out the result of parse i receive the following ...
sam sfmc's user avatar
0 votes
0 answers
50 views

How do I capture the Picklist Selected Event and write the code behind?

To everyone, I'm new to SFDC, but I'm not new to development. Here is what I'm trying to do: 1.) Place Picklist on the Lead page with values RDC and Wire - this is done 2.) Capture the Picklist ...
Eric C.'s user avatar
0 votes
0 answers
28 views

Apex to JSON string [duplicate]

Can some one please help me write the Apex class to generate the JSON string as in the below specific format: Start with static header node and then the Array of records. The first node ('...
Kris's user avatar
  • 1
-2 votes
1 answer
72 views

JSON: Expected '{' at the beginning of object Error is in expression '{!TrackCovd}' in component [closed]

When I use a api using I check all the code twice time but not get where the problems occurs when I fetch the result is find only null because of this is a problem statement System.JSONException: ...
Himanshu Rai's user avatar
-1 votes
1 answer
109 views

Convert XML to DataTable

I have following XML format returning from API. I need to extract in LWC Datatable. XML 1: <steps id="0" last="4"> <step id="2" type="ValidateStep"&...
Ragul's user avatar
  • 541
1 vote
0 answers
151 views

Type cannot be serialized - Working in unmanaged code, failing in managed package

I'm working with the following JSON: { "compositeRequest" : [ { "url" : "/services/data/v58.0/sobjects/Case", "referenceId" : "Parent", &...
d_k's user avatar
  • 1,291
0 votes
1 answer
81 views

put(field, value) method from SObject class throws System.SObjectException: Illegal assignment from String to Datetime

I have encountered the error System.SObjectException: Illegal assignment from String to Datetime and I can't find what is the reason for this error. The context is as follows. I have a class with the @...
Tzinm's user avatar
  • 21
0 votes
1 answer
102 views

Need help with JSON deserialize

JSON deserialize is not working. however, data is coming from LWC in DATA parameter @AuraEnabled public static string saveProductLineItems(Object data) { system.debug('LINE 18 data:'+ ...
SF Dev's user avatar
  • 15
0 votes
1 answer
62 views

Assign value to wrapper throw null exception

I have a JSON String Need to pass as request body with configurabale parameter as below.I have used a wrapper class for that called as EmailWrapper , but here assign value to wrapper.options.fieldOne ...
Buhuni's user avatar
  • 9
-1 votes
1 answer
294 views

Create a JSON using Custom metadata type [closed]

I have a custom metadata which store some parameters which I need to pass in Post callout.I have stotred the Options in below JSON in that custom metadata { "email": "[email protected]&...
Buhuni's user avatar
  • 9
0 votes
1 answer
176 views

Convert or parse datetime coming from external system and save it in salesforce [duplicate]

I am calling a rest api and one of the attribute of the response is datetime which is in CST format(6/26/2023 7:01:50 AM). I tried converting to date time format but its throwing Invalid date/time: 6/...
Sancool's user avatar
  • 43
0 votes
3 answers
61 views

How to update null records in JSON

I'm currently working on the below JSON. Sometimes records in matches return null, instead of record. And null will appear anywhere within the array { "status": "success", ...
Pavan tej's user avatar
  • 1,460
0 votes
0 answers
245 views

How to remove attributes array from JSON

I'm currently working on a lightning component with a lightning tree grid. So, I'm serializing my output as JSON and it's working fine but fetching type attributes array too. How to remove a variety ...
Pavan tej's user avatar
  • 1,460
-1 votes
2 answers
74 views

Accessing the Deserialized JSON list's values and modifying the null values

I have deserialized a JSON data into a list.I want to access the null values present in the list for any wrapper variables and modify it to an empty string. Deserialization Code: lstSeeds = (List<...
Hira Khan's user avatar
0 votes
1 answer
62 views

How to use a variable mapping a json

I need search the assets types in a json but mapping I have a block key that is different in all blocks. I set a variable that cointains this values but when I want to use do not retrive the things ...
Juan's user avatar
  • 1
1 vote
0 answers
799 views

How to pass JSON data in the REST API URL without misinterpreting double quotes?

Hello Salesforce community, I'm currently working on integrating with a REST API and facing an issue with passing JSON data in the URL. Whenever I try to include JSON data, specifically the provided ...
Avin Babu Pattathy's user avatar
0 votes
0 answers
32 views

REST - Journey with DE as trigger

In my app i have a api call which creates a new dataextension through the soap API. When that is done I want to create a new journey with that DE as a starting source. I'm able to create the journey, ...
Kriss's user avatar
  • 1
2 votes
2 answers
447 views

Is JSON deserialization in Apex case sensitive?

If I have to deserialize a response like this: { "Property1" : "value", "Property2" : "value2" } Do I have to respect the case of the property names? I would ...
fred's user avatar
  • 3,420
0 votes
1 answer
103 views

Cannot parse JSON with new AMPscript function to retrieve token -- value is blank

So I've retrieved this json array below frommy api (obviously this is not the real token value), but this is the payload I'm receiving. {"access_token":"token","expires_in&...
en-rep's user avatar
  • 25
0 votes
1 answer
164 views

How to handle null arrays in JSONResponse

Currently, I'm working on an HTTP class and trying to parse HTTPResponse to a custom class but I'm getting below exception.How to handle if a specific array in JSON response returns null Expected ...
Pavan tej's user avatar
  • 1,460
0 votes
0 answers
95 views

Use POST method to get a field value from JSON

I need some similar help. How can I get some field value from a JSON that some API provided me? Using the Post method For example, I have an API https://api.comprovei.com.br/api/1.1/util/export/...
Valteir Junior's user avatar
0 votes
1 answer
59 views

Extract Particular value from the result list and store them in another list

Hi I have a list type of List which is returned from the invocable action. List<Invocable.Action.Result> results = action.invoke(); I am getting the data as below in the form of result. (Result&...
Shekher's user avatar
  • 19
2 votes
1 answer
152 views

Insert records of user Selected Object without knowing object first

If I have a list of object strings containing field data for an object and I have a parameter selecting which object this should be inserted into, is it possible to write apex to insert those records? ...
Crash667's user avatar
  • 239

1
2 3 4 5
30