Skip to content

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