PackagePackagetypeA library you install and call yourself.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →

ABAP to JSON serializer and deserializer

An open-source Z* version of SAP's standard /UI2/CL_JSON class, which serialises ABAP data to JSON and reads it back, installed with abapGit and needing SAP_BASIS 7.31 or later.

Publishes the code of SAP's standard /UI2/CL_JSON class openly, as a Z* class, Z_UI2_JSON, that a system takes in with abapGit and uses as a local or a global class. SAP's own delivery of /UI2/CL_JSON continues; this repository is, in its words, "your way to contribute and get updates sooner", and a contribution made here "will then be integrated into the standard SAP-delivered version". The author wrote the original because they "found all implementations unsuitable for my needs for different reasons" among the other ABAP JSON libraries in SDN, and because the simple transformation available since SAP_BASIS 7.40, which the README puts first for maximal performance, "fits badly for properly handling ABAP types and name pretty-printing". The class states a minimum of SAP_BASIS 7.31, which the README puts down to an ABAP language dependency.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Provides
SerialisationABAPSerialisationcapabilityTurning typed in-memory data into a text or binary format such as JSON, CSV or protobuf and reading it back, including the mapping of names and types the language does not do for you. The protocol that carries the payload is a separate concern: an HTTP or OData client moves the bytes, and serialisation decides what they say.
Requires
abapGitabapGitartifactInstalls the Z* class into a system: the README names the abapGit Eclipse plugin for ABAP cloud systems and abapGit for SAP GUI from SAP_BASIS 7.57, and no other way in.

Who is behind it

SAPSAPOrganisationMaintains this
In the atlas: maintains 137, wrote 14
@SAP
maintainerAjinkya PatilPersonContributes to this
In the atlas: contributes to 112
@ajinkyapatil8190
Alexey ArsenyevPersonContributes to this
In the atlas: contributes to 1
@alexey-arseniev
Guilherme DellagustinPersonContributes to this
In the atlas: contributes to 27
@dellagustin-sap
DerGuteWolfPersonContributes to this
In the atlas: maintains 1, contributes to 5
@DerGuteWolf
lukas-klausnerPersonContributes to this
In the atlas: contributes to 2
@lukas-klausner
Marc BernardPersonContributes to this
In the atlas: contributes to 26
@mbtools
6 contributors

What it declares

Every artifact

Type
Package
Origin
By SAP

As a package

Where it runs
Inside its host
Distributed through
abapGit

Connections2

README

quoted from SAP/abap-to-json under Apache-2.0, read
SAP/abap-to-json/README.mdOn GitHub

ABAP to JSON serializer and deserializer

REUSE status

About this project

This is an Open-source version of the standard /UI2/CL_JSON class, and its public documentation was previously available on the SCN wiki as "One more ABAP to JSON Serializer and Deserializer" in 2013. The official delivery of /UI2/CL_JSON will continue. The Open Source version (Z_UI2_JSON) is your way to contribute and get updates sooner using ABAP Git infrastructure.

Why

There are a lot of other implementations of the ABAP to JSON Serializer and Deserializer in SDN. Still, I found all implementations unsuitable for my needs for different reasons. From SAP_BASIS 7.40, there is also a simple transformation available for converting ABAP to JSON and JSON to ABAP. It is the best choice if you need maximal performance and do not care about serialization format, but it fits badly for properly handling ABAP types and name pretty-printing.

So, I have written my ABAP JSON serializer and ABAP JSON deserializer, which have some key differences from other implementations.

Here, you can find an Open-Source version of the standard /UI2/CL_JSON class in the form of a Z* class that you can use as a local or global one.

An original and current source version can be found in class /UI2/CL_JSON delivered with UI2 Add-on (can be applied to SAP_BASIS 740 – 76X). So, you can use this ABAP JSON parser in your standard code, mostly on any system.

The minimum required SAP_BASIS version for the class is SAP_BASIS 7.31 (ABAP language dependency, e.g., usage of "escape" function).

Alternatives

If, for some reason, the solution does not fit your purposes, there are other alternatives you may try:

Documentation

The Code

Requirements and Setup

Install via abapGit Eclipse plugin on ABAP cloud systems and abapGit for SAPGUI on systems with SAP_BASIS 7.57 or higher.

Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports, etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, and additional contribution information, see our Contribution Guidelines. The contribution in the Open Source version will then be integrated into the standard SAP-delivered version (/UI2/CL_JSON). You can also use Github Discussion to comment, request features, or discuss the behavior.

Code of Conduct

Members, contributors, and leaders pledge to make participation in our community a harassment-free experience. By participating in this project, you agree to always abide by its Code of Conduct.

Licensing

Copyright 2013-2025 SAP SE or an SAP affiliate company and contributors. Please see our LICENSE for copyright and license information. Detailed information, including third-party components and their licensing/copyright information, is available via the REUSE tool.

Apache-2.0, read

History

Latest

v19.3

Notes

Some more new bugs cleaned.

  1. v19.2

    Notes

    Corrects several regression bugs coming with PL19

Serialisation
  1. ABAP JSON APIJSON renderer and parser for ABAP with camelCase conversionfrom ABAP
  2. zcl_mdp_jsonABAP library generating and parsing JSON stringsfrom ABAP
  3. JSON2ABAPTypeGenerator of ABAP type definitions from JSON structuresfrom ABAP
  4. abap-protobufProtocol Buffers (proto2) implementation in ABAPfrom ABAP
  5. ZASISRegex RuleSets that read barcode strings into named fieldsfrom ABAP
  6. ABAP ArchitectEclipse plug-in turning JSON or XML into ABAP types and DDIC objectsfrom ABAP
  7. ajsonJSON parser and serialiser for ABAP with a node treefrom ABAP
  8. sbcgua/text2tabParser of TAB-delimited text into ABAP internal tables and backfrom ABAP
  9. ABAP JSON Encoder/DecoderJSON encoder and decoder for ABAP, modelled on Go's encoding/jsonfrom ABAP
  10. ZwdCSVRFC 4180 CSV parser and generator for ABAPfrom ABAP
  11. ABAP CSV ManagerConfigurable CSV reader and writer for ABAPfrom ABAP

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP/abap-to-jsontree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainabap, protocols-and-apis
abaplint
issues under its own abaplint configuration7,253
lines17,180
statements14,618
objects8
files26
analysed, main
abaplint version2.120.84
Contributors6
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-abap-to-json
JSON
/artifacts/sap-abap-to-json.json
MCP
Connecting an agent