Skip to Content
Jun 22, 2017 at 09:46 PM

ABAP Deserialize JSON into Internal Table

1511 Views Last edit Jun 22, 2017 at 09:58 PM 2 rev

Good morning gentlemen,

Today my encounter consuming a service whose answers are in JSON format and in one of the objects contained in that JSON brings a great JSON array with the information I need, the question could be how to deserialize and insert into an inner table That JSON?

Unfortunately my resources are limited and I do not have the cl_TREX_JSON_DESERIALIZER class, they know of some other way to do this.

Annex the JSON:

{ "allowed_methods": "GET, PUT, POST, DELETE", "employees": [ { "employee": "2007", "firstName": "BELKIS", "lastName": "TORRES" }, { "employee": "2016", "firstName": "NULCA", "lastName": "VIALET" }, { "employee": "2023", "firstName": "QUIRRS","lastName": "RODRIGUEZ" }, { "employee": "2027", "firstName": "MARIA", "lastName": "NUNEZ" }, { "employee": "2033", "firstName": "NOEMI", "lastName": "RODRIGUEZ" } ], "status": 200, "status_msg": "OK" }