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.

learn more… | top users | synonyms

0
votes
1answer
21 views

Batch apex error in apex job : Exceeded max size limit of 3000000

Using Batch apex i am trying to Insert new records in to custom object from json string in salesforce from API url. When my batch apex class run i got this error in apex log. please explain me
0
votes
0answers
9 views

Batch Processing: “Read Timed Out” Error

I am trying to add records from API URL using batch apex in salesforce. I got an error while running batch apex. Please help me to solve this error.
0
votes
2answers
38 views

building an sObject from a json string in VF page

How can I deserialize a JSON string into an sObject in a VF page? I don't want to use a controller so I'm looking for the right approach to do this on the client side only. Any ideas?
1
vote
1answer
64 views

Using Batch apex Insert new records in to custom object from json string in salesforce

I am trying to insert json data in to salesforce objects. Json string is too large so i am using batch apex to insert data. For this I had written apex class i didn't got any error But records not ...
2
votes
1answer
30 views

getting the query result in json format when working with sforce.connection.query

I have this javascript code in a VF page where I'm trying to fetch records from the DB. I'm getting back an xml format but I need it as a json format. Is there a way to get the result records in json ...
0
votes
1answer
46 views

Insert new records in to custom object from json string in salesforce

I am working with the new JSON Parsing functionality, I have API URL that contain json string.I have created one VF page that displays JSON string data in pageblock table in record format from API ...
0
votes
0answers
22 views

using apex trigger to write in G Drive : Authentication process

I develop an apex trigger that creates folders and a file in my company's Google Drive. I have issues with setting the authentication process. Here's google's guide on how to do it : ...
0
votes
1answer
77 views

How to make <apex:inputText> field as read-only using js/jquery

I have a requirement like, when the end user clicks on the list of users, then an input text field should get populated. the input field should be non-editable. lets say the input field value is ...
3
votes
1answer
53 views

Apex Webservice returning **Unexpected parameter encountered during deserialization:**

I have a webservice, and I'm trying to send a List of Apex classes to my SFDC org. Before I even get anywhere in my POST method Salesforce just returns an error. Sample JSON: {"FieldParser": { ...
3
votes
1answer
18 views

Sending Contact Information To External Site With AJAX

I am working on a website that is using Salesforce for membership management purposes. Salesforce is the single repository for membership information and needs to be able to send membership ...
0
votes
0answers
23 views

How to name number property for JSONGenerator

In the PayPal REST API, there is a credit_card object which has a property called number. Unfortunately, "number" is a reserved keyword in Apex, which means that I can't simply name my property number ...
0
votes
3answers
58 views

Json response getting truncated when getting from Salesforce

I am facing a peculiar problem where, I am querying an external webservice using HTTP Rest APIs, and getting a Json response. Now the problem is when the response payload is large, a chunk of data is ...
0
votes
1answer
38 views

How to send Empty field value as blank (Not Null)

Apex Code: List<order_batch__c> bcList = new List<order_batch__c>(); bcList= [select Or_invoiceadd1__c,Or_invoiceadd2__c,Or_invoiceadd3__c,Or_invoiceadd4__c from order_batch__c ...
0
votes
1answer
49 views

Getting error while deserialize

I am trying to deserialize a jason request but getting error that Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at ...
1
vote
0answers
29 views

What is the best approach to store 10 MB JSON and perform CRUD in SFDC?

I have a business case to design a solution for a web based excel like (UI, formulae, etc..) system. I researched and finalized to go with JQuery.Sheet. However, there is no recommendation laid ...
2
votes
2answers
41 views

list changes the column order of records while debugging

Apex: List<order_batch__c> bcList = new List<order_batch__c>(); bcList= [select Or_sub_po_number__c,Or_customer_PO_Number__c, ...
1
vote
1answer
46 views

Deserialize in SObject in apex

Hi I am trying to deserializing the json response and successfully parse the json response,Respone string look like : ...
4
votes
0answers
146 views

Issue in parsing JSON when special characters are included

I have a Json file which has some special character as below:- { "TXT1": "Tést Data", "TXT2": "can®." }, The Special character (é.®) gives me a error BLOB is not a valid UTF-8 string while ...
3
votes
2answers
97 views

Deserialize JSON Root Array

I'm having so trouble deserializing a JSON stream that contains an array as the root: [ { "object": { "property1":"000000", "property2":"000000" ...
1
vote
1answer
56 views

Is there any different calling JSON directly from visualforce page and javascript Static Resource?

I create one javascript file and call JSON from there.Before I use JSON, I use hardcode data and it works.But I try to load data using $JSON, somehow it does not works.Check the code below ...
3
votes
2answers
102 views

What is the maximum number of records I can send per RESTful API call?

There is a maximum batch size for the number of records returned by an API call. Most of the documentation for the API calls reference including a .json file, and some, like the Update a Record ...
2
votes
1answer
35 views

Passing a Name to customize html field on ExactTarget triggered email from Salesforce

I am sending an exact target triggered email using the salesforce Apex developer. However when a member's name does not already exist on the ET side I do not know how to pass that information to ET. ...
6
votes
2answers
94 views

Checkmarx and JSON.serialize

My Salesforce1 code has been recently run through Force.com Security Scanner (a.k.a. Checkmarx). A stored XSS vulnerability has been found and marked as critical security risk. It boils down to ...
3
votes
2answers
127 views

JSON response parser returning some fields null

I am trying to parse a JSON response from google. All the fields are populating with the exception of 'lat' and 'lng'. Not sure what I need to do to get the coordinates. Any help is much ...
4
votes
1answer
39 views

Issue sending triggered email in exactarget using Apex developer

I am trying to fire an ExactTarget triggered email using the Salesforce developer console. I am now getting the error "Problem initating message send during deserialization of JSON payload" Http ...
2
votes
1answer
19 views

JSON Reciever Endpoint

I'm wondering if it is possible to expose an SF endpoint to the internet that can receive JSON data. Its fairly simple to call out to an external service and retrieve data, but I am wanting an ...
3
votes
1answer
58 views

need a method for json string which contains null value and does not contain attributes{ }

please help me, I need a method for json string which contains null value and does not contain attributes{ }. Here's what I currently have: List<Contact> contacts = [SELECT Id, Name, ...
1
vote
1answer
52 views

Extract JSON from Remote Object

There is remote object var case = new Case({Subject:'Test', Status: 'Open'}); How to get/extract json {Subject:'Test', Status: 'Open'} from case reference? Is there some documented approach like ...
4
votes
1answer
264 views

How to Consume JSON Array in Apex REST API Class : Stuck with deserialization Error

I am giving this below JSON array to a REST API-POST Method : So I can insert Account and Contact, but keep getting an error on JSON deserialization of apex parameter. I don't know how shall i go ...
0
votes
1answer
107 views

Why is my Google request denied?

I am trying to integrate Salesforce with Google textsearch in order to acquire a JSON response with desired information. My request is getting denied and I can't figure out why. Any help is much ...
7
votes
2answers
459 views

Handling Large JSON String Values on Visualforce Page

I'm using amcharts to build graph on a visualforce page. The amcharts's input is JSON. So I parse my object to JSON string using JSON.serializePretty. Using this approach, the graph is built fine and ...
4
votes
1answer
129 views

JSON.deserializeUntyped returns “unrecognized token: 'NULL'”, when JSON token has a null value

We're creating our JSON responses to my salesforce callouts in house, so I'm guessing the issue has to do with how we're representing NULL in the JSON response. Here's a snippet of the response SF ...
1
vote
1answer
68 views

How do I refresh an ExactTarget token using the REST API?

How do I refresh an ExactTarget token using the REST API? Is there any good documentation on this?
1
vote
2answers
96 views

Using a variable for a field name in Json stringify

var payload = JSON.stringify( {"Name__c" : data[i].name, "Email__c" : data[i].email } ); How can I do the above one like below. var nameVar = "Name__c"; var payload = JSON.stringify( ...
3
votes
1answer
152 views

Most efficient way to transform AggregateResults to String, Object Maps

Question: What is the most efficient way to transform aggregate results to string object maps? Constraints: The keys of the aggregated results are unknown. The transformation has to be performed as ...
7
votes
2answers
218 views

Parse JSON into Lead

I'm trying to parse a JSON response and create Lead records from it. The JSON is basically formatted as follows. Note, that this is not the complete data being parsed but is the general format of ...
3
votes
0answers
53 views

JSON.serialize alternative which support more objects like HttpRequest or Schema Describes

Often I need a easy and robust way to convert huge nested data structures into an string. Mostly for dumps, logs and debug. JSON.serializePretty() comes close but does not support all Object types ...
0
votes
0answers
27 views

Tracking Triggered Event on Exacttarget

How can we track Fired Event of Journey Builder? We are firing an event via JSON (insert data, evaluate and send email) and getting "{\r\n \"eventInstanceId\": ...
4
votes
2answers
127 views

JSON.DeserializeUntyped: Can I infer anything from the Object returned?

Given a JSON response from a remote API call, I can use JSON.DeserializeUntyped to get an Object, which can then be cast to another type as needed. For example: String jsonResponse = makeAPICall(); ...
3
votes
2answers
497 views

Simple way to generate object from JSON that return from Google Geocode API?

I receive JSON file from Google API Geocoding.Refer to JSON file here.Is there any other easy way to extract the data from this JSON in Apex?I want to retrieve a state value and result status code ...
5
votes
2answers
672 views

replaceAll() \r\n in a JSON serialized string

I can't get replaceAll to work on the '\r\n' sequence in a JSON serialized string. I am serializing a Map object that contains long textarea fields with newlines. I need to change '\r\n' to '\\r\\n' ...
5
votes
2answers
191 views

How can I serialize an object to JSON without properties that are null?

To communicate with a REST interface on a private system, I need to send a JSON message from a trigger. I have a message object that has some fields, lists and a child object: public class ...
2
votes
0answers
87 views

How to set sort order for report called by analytics api using json/ajax

i try to change the sort order of a report called via analytics rest api. For grouped reports there are sortOrder attributes in the grouping section, but i have to call a tabular report. If i call ...
2
votes
1answer
56 views

can exact target connect to a 3rd party web service?

Can exacttarget be configured to connect to a 3rd party webservice returning a JSON object? I guess there are two questions: - can I cause exacttarget to connect to a 3rd party webservice to populate ...
1
vote
2answers
98 views

How to construct the nested JSON

I am using following code and could you please let me know how to construct the nested json. public String getJsonString() { String str = null; JSONGenerator gen = ...
1
vote
1answer
288 views

How to make the context menu for the below code.

I would like to construct the tree view using the JSON with Two object(Account & Contact). root node is the account id and sub node would be the contact(nested level). Treeview: ...
2
votes
1answer
301 views

Parsing JSON with nesting and Arrays

I'm kinda of new to APEX code and working with JSON and I'm trying to figure out how to parse out nested JSON with Array's. This is a basic pattern of the JSON we have coming into our custom field ...
0
votes
1answer
472 views

How to create new record from jstree using json

I would like to create the record from the jstree using context menu. Please help to resolve my issue: My Code: contextmenu : { "items" : function (node) { ...
1
vote
1answer
457 views

JSON Deserialize Byte Array

I'm porting over a rest client from .NET to Apex and in the class that gets initiated by deserializing the JSON response, there is a byte[]. C# Example: public class MyResponse { public ...
0
votes
0answers
42 views

StreamingAPI response has error

I have StreamingAPI it working properly.It some time response has error at the time response JSON Object as error.The log file response contains error below Wed May 15 08:33:07 MST 2014 : Waiting for ...