Skip to content

Incorrect indentation for nested array #12

@nstansby

Description

@nstansby

Given this minified JSON:

{"tokens":{"access":["access1","access2","access3","access4","access5"],"completion":"completion1","signature":"tokenSig"}}

The formatted JSON is:

{
    "tokens": {
        "access": ["access1",
        "access2",
        "access3",
        "access4",
        "access5"],
        "completion": "completion1",
        "signature": "tokenSig"
    }
}

I think this obscures the level of hierarchy introduced by the nested array. It should probably be more like this:

{
    "tokens": {
        "access": [
            "access1",
            "access2",
            "access3",
            "access4",
            "access5"
        ],
        "completion": "completion1",
        "signature": "tokenSig"
    }
}

Super useful plugin, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions