- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2017 08:49 PM
HI Team,
Please help me to fetch the sys_id value from json object
"parent":"",
"made_sla":"true",
"caused_by":"",
"watch_list":"",
"upon_reject":"cancel",
"sys_updated_on":"2017-05-26 03:35:02",
"sys_id":"33acf340db4b320050315ec0cf96193f",
"contact_type":"",
"correlation_id":"",
"location":"",
"category":"inquiry"
}
}
Thanks
Chandu Telu
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2017 03:16 AM
Hi,
Use below code to parse JSON data
var data = '{ "result":{ "parent":"", "sys_id":"33acf340db4b320050315ec0cf96193f", "contact_type":"",}}'; // Demo json Data
var jsData= JSON.parse(data); // convert json object into javascript object
var sysID = jsData["result"].sys_id ;
Thanks,
Jeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2017 03:16 AM
Hi,
Use below code to parse JSON data
var data = '{ "result":{ "parent":"", "sys_id":"33acf340db4b320050315ec0cf96193f", "contact_type":"",}}'; // Demo json Data
var jsData= JSON.parse(data); // convert json object into javascript object
var sysID = jsData["result"].sys_id ;
Thanks,
Jeet