Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to stringify for trailing commas #191

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 7, 2024

  1. Add option to stringify for trailing commas

    Setting `iv_trailing_comma = abap_true` adds a comma to the last node of objects and arrays. This reduces diffs when comparing JSON files, for example.
    
    Example:
    
    - regular
    
    ```abap
    lo_json->stringify(
      iv_indent         = 2 ).
    ```
    
    - with trailing commas
    
    ```abap
    lo_json->stringify(
      iv_indent         = 2 
      iv_trailing_comma = abap_true ).
    ```
    
    
    ```
    mbtools committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    3550d5c View commit details
    Browse the repository at this point in the history
  2. Preferred parameter

    mbtools committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    db23525 View commit details
    Browse the repository at this point in the history