Parsing JSON in ABAP using XCO Library (xco_cp_json)
The xco_cp_json class is part of the SAP XCO (Extension Components) library and allows ABAP developers to work with JSON data directly in ABAP code. A developer uses it to parse JSON responses from external API calls — for example, by transforming a JSON string into an ABAP-readable structure after receiving a response from an outbound HTTP service. This approach is commonly applied when calling an external API and processing its JSON response within custom business object logic or similar extensibility scenarios.
Tutorials that teach this
Prerequisites
- Concept ABAP Key User Extensibility HTTP Client (CL_BLE_HTTP_CLIENT / CL_BLE_HTTP_REQUEST) The ABAP Key User Extensibility HTTP client classes `CL_BLE_HTTP_CLIENT` and `CL_BLE_HTTP_REQUEST` allow developers to make outbound HTTP calls from within custom business object logic in the Key User Extensibility layer. A developer uses them to build and execute HTTP requests — such as calling an external REST service — directly from custom logic scripts, without leaving the extensibility framework.
- Concept Creating and Running an Executable ABAP Console Application (IF_OO_ADT_CLASSRUN)