Hi all,
i am working on SOA 12c Rest Composite. i am facing issue in converting xml to JSON using javascript SOA 12c
below is the request & response and unable to get the response in required format.
Request :
{
"firstName": "ABC",
"middleName": "V",
"AddrCity": "CITY",
"AddressLine2": "ADDRESS LINE 2",
"LastName": "LASTNAME",
"AddressLine1": "ADDR LINE1",
"Country": "India",
"customerId": "1234",
"AddrPinCode": "999999"
}
Response :
{"return": {
"response": [{"$": 1234}],
"responseMessage": [{"$": "Success ABC"}],
"responseCode": [{"$": "CITY,India"}]
}}
Notice the $ symbol.
Unable to fetch the value from response, reponseMessage & responseCode respectively.
ideally expecting the JSON response to be like below without $
{"return": {
"response": 1234,
"responseMessage": "Success ABC",
"responseCode": "CITY,India"
}}
thanks in advance for your quick help