{"ref":"capability:serialisation","page":"/capabilities/serialisation","json":"/capabilities/serialisation.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"serialisation","name":"Serialisation","domain":"protocols-and-apis","ecosystems":["abap"],"universal":false,"description":"Turning 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.","short":"Turning typed data into JSON, CSV or protobuf and back","core_coverage":{"state":"core-and-community","assessed_at":"2026-09-14","what_core_does":"The identity transformation ID converts ABAP data to and from asJSON, the sXML library reads and writes JSON through JSON-XML, and /UI2/CL_JSON serialises and deserialises in one call. SAP's list of released classes adds XCO_CP_JSON for JSON and CL_CSV_FACTORY for writing CSV.","where_it_stops":"At JSON, XML and writing CSV. Reading CSV, tab-delimited text and protobuf are not among the classes that list names, and asJSON writes ABAP's own names and types, so a payload shaped by someone else needs a mapping on top.","relationship":"unassessed","note":"[abap-to-json](artifact:sap-abap-to-json) is SAP's open-source copy of /UI2/CL_JSON, published so that fixes arrive ahead of the UI2 add-on while the official delivery continues. How the independent libraries relate to the core classes has not been assessed.","community_adds":"Parsers that keep JSON as a tree to read and change in parts, such as [ajson](artifact:sbcgua-ajson), generators of ABAP type definitions from a JSON sample, among them the Eclipse plug-in [abap-architect](artifact:murattahtaciii-abap-architect) that also writes XML parsing code and the DDIC objects over ADT, CSV and tab-delimited readers into typed tables, and a proto2 encoder.","sources":[{"url":"https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abenabap_json.htm","title":"ABAP Keyword Documentation 7.51 — ABAP and JSON","checked":"2026-09-14","quote":"a canonical JSON representation of ABAP data called asJSON can be used for the identity transformation ID"},{"url":"https://github.com/SAP-samples/abap-cheat-sheets/blob/main/22_Released_ABAP_Classes.md","title":"ABAP cheat sheets — Released ABAP Classes, XML/JSON and Writing Internal Table Content to CSV","checked":"2026-09-14","quote":"The CL_CSV_FACTORY class represents a factory class to create CSV writers."},{"url":"https://github.com/SAP/abap-to-json","title":"SAP/abap-to-json — README","checked":"2026-09-14","quote":"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."}]},"drafted_with_ai":true,"history":[{"date":"2026-10-26","field":"core_coverage.note","from":"One entry here is SAP's open-source copy of /UI2/CL_JSON, ...","to":"[abap-to-json](artifact:sap-abap-to-json) is SAP's open-source copy of /UI2/CL_JSON, ...","reason":"Reassessed against the graph (check:capabilities): the sentence counted entries; it now names and links the artifact."},{"date":"2026-10-26","field":"core_coverage.community_adds","from":"Parsers that keep JSON as a tree to read and change in parts, a generator of ABAP type definitions from a JSON sample, ...","to":"Parsers that keep JSON as a tree, such as ajson, generators of ABAP type definitions from a JSON sample, among them the abap-architect Eclipse plug-in that also writes XML parsing code and DDIC objects over ADT, ...","reason":"Reassessed against the graph (check:capabilities): abap-architect, an ide-extension that provides this capability, was not named; ajson linked as the defining parser."}]},"sap_delivery":{"door":"abap","all":{"built_in":[],"documented_pattern":[],"announced":[],"packages":[{"ref":"artifact:sap-abap-to-json","name":"ABAP to JSON serializer and deserializer","json":"/artifacts/sap-abap-to-json.json"}]},"by_flavor":{"standard-abap":null,"abap-cloud":null}},"edges":{"use_cases":[],"shared_tasks":[],"related_tasks":[],"options":[{"ref":"artifact:murattahtaciii-abap-architect","name":"ABAP Architect","json":"/artifacts/murattahtaciii-abap-architect.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:zenrosadira-abap-tbox-csvman","name":"ABAP CSV Manager","json":"/artifacts/zenrosadira-abap-tbox-csvman.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:abapify-json","name":"ABAP JSON API","json":"/artifacts/abapify-json.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:valdirmendesdev-abap-json-encoder-decoder","name":"ABAP JSON Encoder/Decoder","json":"/artifacts/valdirmendesdev-abap-json-encoder-decoder.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:sap-abap-to-json","name":"ABAP to JSON serializer and deserializer","json":"/artifacts/sap-abap-to-json.json","ecosystem":"abap","origin_ring":"sap-official"},{"ref":"artifact:heliconialabs-abap-protobuf","name":"abap-protobuf","json":"/artifacts/heliconialabs-abap-protobuf.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:sbcgua-ajson","name":"ajson","json":"/artifacts/sbcgua-ajson.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:fidley-json2abaptype","name":"JSON2ABAPType","json":"/artifacts/fidley-json2abaptype.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:sbcgua-text2tab","name":"sbcgua/text2tab","json":"/artifacts/sbcgua-text2tab.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:magpasulke-abap-string-interpreter","name":"ZASIS","json":"/artifacts/magpasulke-abap-string-interpreter.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:fatihpense-zcl-mdp-json","name":"zcl_mdp_json","json":"/artifacts/fatihpense-zcl-mdp-json.json","ecosystem":"abap","origin_ring":"independent"},{"ref":"artifact:wegnerdan-zwdcsv","name":"ZwdCSV","json":"/artifacts/wegnerdan-zwdcsv.json","ecosystem":"abap","origin_ring":"independent"}],"samples":[],"explained_by":[{"ref":"content:sap-ci-to-abap-integration-seamless-xml-to-internal-table-mapping","name":"SAP CI to ABAP Integration: Seamless XML to Internal Table Mapping","json":"/content/sap-ci-to-abap-integration-seamless-xml-to-internal-table-mapping.json"}],"normative_context":[]}}