DIR Return Create A Forum - Home
---------------------------------------------------------
knowledge-space
HTML https://sravanks.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Dictionary
*****************************************************
#Post#: 7--------------------------------------------------
Convert JSON to Javascript Object
DIR 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"
> }
> ]
> }
>
>
--- End 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());
--- End Quote ---
[attach=1]
*****************************************************
Page 1 of 1