DetectedIntegration, APIs & connectivity
ABAP Openapi
A source-verified project description is not available yet. Open the detail page or wait for a manual refresh.
abapdotabapintegration-api
Source facts need a manual refresh
Yet another json parser serializer for ABAP
Yet another json parser serializer for ABAP
abaplint abap package version
Yet another JSON parser/serializer for ABAP. It works with release 7.02 or higher.
Since v1.2.0:
Installed using abapGit, see also Installation section of the documentation.
data r type ref to zif_ajson.
data fragment type ref to zif_ajson.
r = zcl_ajson=>parse( '{"success": 1, "error": "", "payload": {"text": "hello"}}' ).
r->get( '/success' ). " returns "1"
r->get_integer( '/success' ). " returns 1 (number)
r->get_boolean( '/success' ). " returns "X" (abap_true - because not empty)
r->get( '/payload/text' ). " returns "hello"
r->members( '/' ). " returns table of "success", "error", "payload"
fragment = r->slice( '/payload' ).
fragment->get( '/text' ). " returns "hello" (the root has changed)
fragment->set(
iv_path = '/text'
iv_val = 'new text' ).
fragment->stringify( ). " {"text":"new text"}See a lot more examples and usages in the Documentation.