Skip to content

Indentation incorrect for array at top level #41

Open
@Bjwebb

Description

@Bjwebb

Example:

import jsonstreams

with jsonstreams.Stream(jsonstreams.Type.array, filename='test.json', indent=4) as s:
    s.write({"a": 1, "b": 2})

Actual test.json:

[
    {
    "a": 1,
    "b": 2
}
]

Expected test.json:

[
    {
        "a": 1,
        "b": 2
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions