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

refactor: optimize JSON indent output format #236

Merged
merged 1 commit into from
Jan 9, 2024
Merged

refactor: optimize JSON indent output format #236

merged 1 commit into from
Jan 9, 2024

Conversation

stevenlele
Copy link
Contributor

@stevenlele stevenlele commented Aug 3, 2023

Remove space in json output.
Before

[
   {
     "Name": "name1",
     "Password": "password1",
     "Infos": [
       {
         "Infos1": "Infos1",
         "Infos2": "Infos2",
         "Infos3": 1
       }
     ]
   },
   {
     "Name": "name2",
     "Password": "password2",
     "Infos": [
       {
         "Infos1": "Infos1",
         "Infos2": "",
         "Infos3": 1
       }
     ]
   }
 ]

After:

[
  {
    "Name": "name1",
    "Password": "password1",
    "Infos": [
      {
        "Infos1": "Infos1",
        "Infos2": "Infos2",
        "Infos3": 1
      }
    ]
  },
  {
    "Name": "name2",
    "Password": "password2",
    "Infos": [
      {
        "Infos1": "Infos1",
        "Infos2": "",
        "Infos3": 1
      }
    ]
  }
]

@moonD4rk moonD4rk changed the title fix: fix JSON output indent refactor: optimize JSON indent output format Jan 9, 2024
@moonD4rk moonD4rk merged commit 5bbf5f7 into moonD4rk:dev Jan 9, 2024
@stevenlele stevenlele deleted the json-indent branch January 9, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants