You need to sign in to do that
Don't have an account?

@httppost
@RestResource(urlMapping='/NewContact/*')
global without sharing class WSContact {
@HttpPost
global static String createMobileCon(string input) {
// string input='{"input":{"LastName":"TEST","Designation":"TESTER"}}';
/*
i am unable to parse the json input when it comes in as a parameter
*/
insert newCase;
return newCase.id;
}
Any help will be highly appreciated.
global without sharing class WSContact {
@HttpPost
global static String createMobileCon(string input) {
// string input='{"input":{"LastName":"TEST","Designation":"TESTER"}}';
/*
i am unable to parse the json input when it comes in as a parameter
*/
insert newCase;
return newCase.id;
}
Any help will be highly appreciated.
See the below links,
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009DwZIAU
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_json_jsonparser.htm
http://salesforce.stackexchange.com/questions/9328/how-to-parse-the-json-object-in-salesforce
Regards,
Ashish