I'm new to apex rest services.Normally in Apex rest services the input json body automatically deserializes to apex class object. but my json body contains reserved key words.For Rest services automatically deserialization happen if we define method parameters so we don't have control to replace json string.
Can anyone please let me know how to overcome this problem.
I'll receive input in the following way
{
"reqId":"DNMFJP00029279",
"buyerDetails":{
"company":"DNMF(DunderMifflin)",
"coordinatorLastName":"Hamilton",
"coordinatorFirstName":"Susan",
"department":"PaperProcessing",
},
"rates":{
"taxStatus":"w-2",
"currency":"USD",
"billRateMax":"30.88",
"billRateMin":"8.00",
"payRateMin":"7.50",
"payRateMax":"22.00",
"targetPayRate":"45.00",
"targetBillRate":"72.00"
},
"reqDetails":{
"responseDeadline":"2015-2-10T00:00:00+00:00",
"category":"Professional",
"reason":"Project",
"education":"Bachelor'sDegree(Required)",
"skills":"MicrosoftWord-4years(Required)",
"workDays":"Monday,Tuesday,Wednesday,Thursday,Friday",
"endTime":"5:00PM",
"startTime":"8:00AM",
"createdDate":"2015-1-31T00:00:00+00:00",
"totalOpenings":1,
"hours":"40.00",
"endDate":"2015-12-31T00:00:00+00:00",
"startDate":"2015-04-13T00:00:00+00:00",
"comments":"WillrequireoccasionaltripstoScranton,PA",
"description":"Thisjobrequiresexpertiseinsalesandpapermanagement.",
"qualifications":"Mustbeabletooperateastapler",
"title":"BusinessAnalystIII",
"positionType":"Temp",
"location":"1725SloughAvenue,WashingtonDCUSA20008"
},
"submittalMax":2,
"reqStatus":"hold",
}
please help me how to deserialize the above string in apex rest service