06-12-2018 7:26 AM
Hi Team,
I am able to get the JSON info in my abap program but i am not able to fetch the exact information i need from JSON response and store it internal table.
Request to suggest the best way. below is my JOSN.
In that below JSO i want read below fields:
key
issuetype-name
description
{ "expand": "schema,names", "startAt": 0, "maxResults": 50, "total": 5, "issues": [ { "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields", "id": "10200", "self": "http://localhost:8080/rest/api/2/issue/10200", "key": "SOLJIRA-5", "fields": { "issuetype": { "self": "http://localhost:8080/rest/api/2/issuetype/10100", "id": "10100", "description": "A task that needs to be done.", "iconUrl": "http://localhost:8080/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype", "name": "Task", "subtask": false, "avatarId": 10318 }, "duedate": null, "resolutiondate": null, "created": "2018-06-12T10:59:42.000+0900", "description": null, "assignee": null, "priority": { "self": "http://localhost:8080/rest/api/2/priority/3", "iconUrl": "http://localhost:8080/images/icons/priorities/medium.svg", "name": "Medium", "id": "3" }, "updated": "2018-06-12T10:59:42.000+0900", "status": { "self": "http://localhost:8080/rest/api/2/status/10000", "description": "", "iconUrl": "http://localhost:8080/images/icons/status_generic.gif", "name": "To Do", "id": "10000", "statusCategory": { "self": "http://localhost:8080/rest/api/2/statuscategory/2", "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } } } },
06-12-2018 7:37 AM
06-12-2018 8:17 AM
Follow the wiki blog below:
https://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
Basically you have to create a internal table with the similar fields and deserialize the data..