We are currently working on with bulk api to load json data's into salesforce.But unfortunately we are not able to load it and getting error as
unsupported content type
does salesforce currently support Json post?
The following is the curl command used:
curl https://ap2.salesforce.com/services/async/35.0/job/jobid/batch -H "X-SFDC-Session:sessionid" -H "Content-Type:application/json;charset=UTF-8" --data-binary @bulk.json
<?xml version="1.0" encoding="UTF-8"?><error xmlns="http://www.force.com/2009/06/asyncapi/dataload"> <exceptionCode>UnsupportedContentType</exceptionCode> <exceptionMessage>Unsupported content type: application/json;charset=UTF-8</exceptionMessage>
when we surfed about the error it was mentioned in one of the developer forum as we have to wait for the next version to make json post work.is it so?or is there any problem with the syntax?suggestions please.Need experts answer please.
Thanks in advance