I have created a REST webservice which gives me 'GET JSON Response' as :
{
"payload": {
"RFID": "E2005180040F003122202E5F",
"chassisNumber": "4654689761",
"vehicleNumber": "TN 01 1991"
},
"success": "true"
}
Now I want Post Response from below Post Request :
Vehicle tag Request
{
"vehicle_no": "TN07B0054"
}
I have created the post method but it takes the whole thing as argument.
How to take vehicle argument as "TN07B0054" only from the Vehicle tag request.
Below is the POST
response when I give above Vehicle Tag Request :
{
"payload": {
"vehicleNumber": "\"vehicle_no\": \"TN 07 B 0054\""
},
"success": "false"
}