Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .abapgit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<MIN_RELEASE>702</MIN_RELEASE>
</item>
</REQUIREMENTS>
<VERSION_CONSTANT>ZCL_AJSON_EXTENSIONS=&gt;C_VERSION</VERSION_CONSTANT>
<VERSION_CONSTANT>/APMG/CL_AJSON_EXTENSIONS=&gt;C_VERSION</VERSION_CONSTANT>
</DATA>
</asx:values>
</asx:abap>
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
![Version](https://img.shields.io/endpoint?url=https://shield.abappm.com/github/abapPM/{{repo}}/src/zcl_{{module}}.clas.abap/c_version&label=Version&color=blue)
![Version](https://img.shields.io/endpoint?url=https://shield.abappm.com/github/abapPM/ABAP-AJSON-Extensions/src/%2523apmg%2523cl_ajson_ext.clas.abap/c_version&label=Version&color=blue)

[![License](https://img.shields.io/github/license/abapPM/{{repo}}?label=License&color=success)](https://github.com/abapPM/{{repo}}/blob/main/LICENSE)
[![License](https://img.shields.io/github/license/abapPM/ABAP-AJSON-Extensions?label=License&color=success)](https://github.com/abapPM/ABAP-AJSON-Extensions/blob/main/LICENSE)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?color=success)](https://github.com/abapPM/.github/blob/main/CODE_OF_CONDUCT.md)
[![REUSE Status](https://api.reuse.software/badge/github.com/abapPM/{{repo}})](https://api.reuse.software/info/github.com/abapPM/{{repo}})
[![REUSE Status](https://api.reuse.software/badge/github.com/abapPM/ABAP-AJSON-Extensions)](https://api.reuse.software/info/github.com/abapPM/ABAP-AJSON-Extensions)

# {{package}}
# AJSON Extensions

...
Mapping and filter extensions for [AJSON](https://github.com/sbcgua/ajson).

NO WARRANTIES, [MIT License](https://github.com/abapPM/{{repo}}/blob/main/LICENSE)
NO WARRANTIES, [MIT License](https://github.com/abapPM/ABAP-AJSON-Extensions/blob/main/LICENSE)

## Usage

Expand All @@ -20,24 +20,24 @@ SAP Basis 7.50 or higher

## Installation

Install `{{module}}` as a global module in your system using [apm](https://abappm.com).
Install `ajson-ext` as a global module in your system using [apm](https://abappm.com).

or

Specify the `{{module}}` module as a dependency in your project and import it to your namespace using [apm](https://abappm.com).
Specify the `ajson-ext` module as a dependency in your project and import it to your namespace using [apm](https://abappm.com).

## Contributions

All contributions are welcome! Read our [Contribution Guidelines](https://github.com/abapPM/{{repo}}/blob/main/CONTRIBUTING.md), fork this repo, and create a pull request.
All contributions are welcome! Read our [Contribution Guidelines](https://github.com/abapPM/ABAP-AJSON-Extensions/blob/main/CONTRIBUTING.md), fork this repo, and create a pull request.

You can install the developer version of ABAP {{package}} using [abapGit](https://github.com/abapGit/abapGit) by creating a new online repository for `https://github.com/abapPM/{{repo}}`.
You can install the developer version of ABAP {{package}} using [abapGit](https://github.com/abapGit/abapGit) by creating a new online repository for `https://github.com/abapPM/ABAP-AJSON-Extensions`.

Recommended SAP package: `${{package}}`
Recommended SAP package: `/APMG/AJSON-EXT`

## About

Made with ❤ in Canada

Copyright 2025 apm.to Inc. <https://apm.to>

Follow [@marcf.be](https://bsky.app/profile/marcf.be) on Blueksy and [@marcfbe](https://linkedin.com/in/marcfbe) or LinkedIn
Follow [@marcf.be](https://bsky.app/profile/marcf.be) on Bluesky and [@marcfbe](https://linkedin.com/in/marcfbe) or LinkedIn
7 changes: 4 additions & 3 deletions abaplint.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"CLAS",
"DEVC",
"INTF",
"NSPC",
"PROG"
]
},
Expand Down Expand Up @@ -180,7 +181,7 @@
"aqqu": "^Z",
"aqsg": "^Z",
"auth": "^Z",
"clas": "^ZC(L|X)\\_AJSON_EXT",
"clas": "^/APMG/C(L|X)_AJSON_EXT",
"cmod": "^Z",
"doma": "^Z",
"dtel": "^Z",
Expand All @@ -192,7 +193,7 @@
"idoc": "^Z",
"ignoreNames": [],
"ignorePatterns": [],
"intf": "^ZIF\\_AJSON_EXT",
"intf": "^/APMG/IF_AJSON_EXT",
"msag": "^Z",
"patternKind": "required",
"pinf": "^Z",
Expand Down Expand Up @@ -279,7 +280,7 @@
"xml_consistency": true
},
"syntax": {
"errorNamespace": "^(Z|Y|LCL_|TY_|LIF_)",
"errorNamespace": "^(/APMG/|LCL_|TY_|LIF_)",
"globalConstants": [],
"globalMacros": [],
"version": "v702"
Expand Down
3 changes: 3 additions & 0 deletions package.abap.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"type": "github",
"url": "https://github.com/sponsors/abapPM"
},
"dependencies": {
"ajson": "^1.1.12"
},
"engines": {
"abap": ">=7.2",
"apm": ">=1"
Expand Down
16 changes: 16 additions & 0 deletions src/#apmg#.nspc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_NSPC" serializer_version="v1.0.0">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<NSPC>
<NAMESPACE>/APMG/</NAMESPACE>
<REPLICENSE>41813564412598342476</REPLICENSE>
</NSPC>
<NSPC_TEXT>
<SPRAS>E</SPRAS>
<DESCRIPTN>apm</DESCRIPTN>
<OWNER>apm.to Inc.</OWNER>
</NSPC_TEXT>
</asx:values>
</asx:abap>
</abapGit>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS zcl_ajson_extensions DEFINITION
CLASS /apmg/cl_ajson_extensions DEFINITION
PUBLIC
FINAL
CREATE PUBLIC.
Expand Down Expand Up @@ -45,7 +45,7 @@ ENDCLASS.



CLASS zcl_ajson_extensions IMPLEMENTATION.
CLASS /apmg/cl_ajson_extensions IMPLEMENTATION.


METHOD filter_empty_zero_null.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CLASS ltcl_ajson_libs IMPLEMENTATION.
)->set(
iv_path = '/'
iv_val = abap_test
)->map( zcl_ajson_extensions=>to_camel_case_underscore( )
)->map( /apmg/cl_ajson_extensions=>to_camel_case_underscore( )
)->stringify( ).

cl_abap_unit_assert=>assert_equals(
Expand All @@ -65,7 +65,7 @@ CLASS ltcl_ajson_libs IMPLEMENTATION.
DATA abap_result TYPE ty_test.
DATA ajson TYPE REF TO zif_ajson.

ajson = zcl_ajson=>parse( json_test )->map( zcl_ajson_extensions=>from_camel_case_underscore( ) ).
ajson = zcl_ajson=>parse( json_test )->map( /apmg/cl_ajson_extensions=>from_camel_case_underscore( ) ).

ajson->to_abap( IMPORTING ev_container = abap_result ).

Expand Down Expand Up @@ -98,7 +98,7 @@ CLASS ltcl_ajson_libs IMPLEMENTATION.

act = zcl_ajson=>create_from(
ii_source_json = test
ii_filter = zcl_ajson_extensions=>filter_empty_zero_null( ) ).
ii_filter = /apmg/cl_ajson_extensions=>filter_empty_zero_null( ) ).

cl_abap_unit_assert=>assert_equals(
act = act->stringify( )
Expand Down Expand Up @@ -126,7 +126,7 @@ CLASS ltcl_ajson_libs IMPLEMENTATION.

act = zcl_ajson=>create_from(
ii_source_json = test
ii_filter = zcl_ajson_extensions=>filter_empty_zero_null( ) ).
ii_filter = /apmg/cl_ajson_extensions=>filter_empty_zero_null( ) ).

cl_abap_unit_assert=>assert_equals(
act = act->stringify( )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<VSEOCLASS>
<CLSNAME>ZCL_AJSON_EXTENSIONS</CLSNAME>
<CLSNAME>/APMG/CL_AJSON_EXTENSIONS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>AJSON More Libraries</DESCRIPT>
<STATE>1</STATE>
Expand Down