Skip to content

Is there a way of format just making a pretty print without changing the key's orders ? #713

Description

@zhishupp

for example, format like this, just adjust the indent, not change key's orders

{
	"arp table":	[{
			"Bucket":	88,
			"IPv4":	"1.0.0.1",
			"MAC":	"83:84:D4:D8:C6:AA",
			"Expire":	"static"
		}, {
			"Bucket":	998,
			"IPv4":	"1.0.0.2",
			"MAC":	"83:84:D4:D8:C6:BB",
			"Expire":	"static"
		}]
}
{
    "arp table": [
        {
            "Bucket": 88,
            "IPv4": "1.0.0.1",
            "MAC": "83:84:D4:D8:C6:AA",
            "Expire": "static"
        },
        {
            "Bucket": 998,
            "IPv4": "1.0.0.2",
            "MAC": "83:84:D4:D8:C6:BB",
            "Expire": "static"
        }
    ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions