Skip to content

SAP/abap-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 that was previously available on SCN wiki as "One more ABAP to JSON Serializer and Deserializer" from 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, but for different reasons, all implementations I have found were not suitable for my needs. 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 for proper handling of ABAP types and name pretty-printing, it fits badly.

So, I have written my ABAP JSON serializer and ABAP JSON deserializer which has 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 class or as a global one.

An original and actual version of the source 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.

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, as well as additional contribution information, see our Contribution Guidelines. The contribution in the Open Source version will be then 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

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2013-2023 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.