+ 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