DIR Return Create A Forum - Home
---------------------------------------------------------
knowledge-space
HTML https://sravanks.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Dictionary
*****************************************************
#Post#: 7--------------------------------------------------
Convert JSON to Javascript Object
By: sravan Date: September 27, 2017, 5:10 am
---------------------------------------------------------
JSON from Backend Service :
[quote]
{
"result": {
"code": 1001,
"message": "Success",
"status": true,
"debugMessage": null,
"debugStackTrace": null
},
"details": [
{
"bpId": "3000002306",
"membershipId": "0000000618",
"assessmentTypeCode": "FWA",
"assessmentTypeName": "Financial Wellness Assessment",
"assessmentId": 347,
"assessmentDefinitionId": 1,
"startDate": "2017-09-15",
"completeDate": "2017-09-18"
}
]
}
[/quote]
resp.getContent() returns above JSON Data. This is in apigee.
ServiceCallout Policy returns the JSON Data. We take that JSON
Data in javascript file using resp.getContent()
[quote]var responseObj = JSON.parse(resp.getContent());[/quote]
[attach=1]
*****************************************************