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

Pretty Formating Json file #13

Open
truskawex opened this issue Jul 8, 2024 · 0 comments
Open

Pretty Formating Json file #13

truskawex opened this issue Jul 8, 2024 · 0 comments

Comments

@truskawex
Copy link

truskawex commented Jul 8, 2024

Hi,
is there a way to save json with human readable formatting?
In Newtonsoft Json package there is a parameter JsonConvert.SerializeObject(Object, Formatting.Indented), can I achieve this behavior using your package?
For now VScode automatically formats text for me but only when I hit ctrl + s, I frequently read these files so it will be nice for me if it will just be in right format instantly.

Before

{"StringData":[{"Key":"Search","Value":""},{"Key":"GroupCreating","Value":"None"}],"IntData":[{"Key":"Sort","Value":0},{"Key":"DayOfQoute","Value":0},{"Key":"IDcount","Value":1}],"FloatData":[],"BoolData":[{"Key":"is_QOTD_on","Value":true}]}

After

{
  "StringData": [
    {
      "Key": "Search",
      "Value": ""
    },
    {
      "Key": "GroupCreating",
      "Value": "None"
    }
  ],
  "IntData": [
    {
      "Key": "Sort",
      "Value": 0
    },
    {
      "Key": "DayOfQoute",
      "Value": 0
    },
    {
      "Key": "IDcount",
      "Value": 1
    }
  ],
  "FloatData": [],
  "BoolData": [
    {
      "Key": "is_QOTD_on",
      "Value": true
    }
  ]
}

Thanks for all <3

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

No branches or pull requests

1 participant