function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
amidstcloudamidstcloud 

Weird Response from SFDC when contact is created through Standard Rest API.

Hi Team . . 

I have a java program to create contact in salesforce through Standard URL to create records.  I am sending the request in JSON and expecting a response in JSOn . though I am getting weird response. 
 
{"id":"0031700000469cYAAQ","success":true,"errors":[]NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL }"id":"0031700000469cYAAQ","success":true,"errors":[]
What is the best to parse the response in JAVA. and why is thie weird response is coming from SFDC..
 
SonamSonam (Salesforce Developers) 
Got the following with a similar JSON response, check to see if the solution for parsing is helpful:
http://stackoverflow.com/questions/21624102/json-javascript-string-syntax-error-when-parsing-an-array