Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Json string and store information in ABAP internal table ?

0 Kudos

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" } } } },

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

Read first ABAP and JSON.

maheshpalavalli
Active Contributor

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..