Discussions

Ask a Question
Back to All

Getting parsing error since JSON response key is having HYPHEN '-', getting parsing error

Hi

we are integrating Degreed API with Servicenow, we are getting parsing error since response object is having a key. below e.g. degreed-url, created-at etc we are getting the parsing error. please let us know if anyone has faced the similar problem
"data": [
{
"type": "skill-plans",
"id": "xxxL4K",
"attributes": {
"name": "Test",
"description": "",
"visibility": "Author",
"degreed-url": "https://degreed.com/plan/16xxx59",
"created-at": "2020-12-03T22:35:49.4971346",
"modified-at": "2021-03-24T19:03:54.7221652",
"plan-type": "Target",
"is-endorsed": true,
"can-collaborate": true,
"external-id": null,
"subtitle": "",
"can-follow": true,
"image-url": ""
},
"links": {
"self": "https://api.degreed.com/api/v2/skill-plans/sKj2K"
}
},