Skip to content

Regression in output #653

@AvdN

Description

@AvdN

Between 1.35 and 2.0.0 a regression was introduced, so that the output as indicated in the readme is no longer generated and an extra, unnecessary space is inserted between : and ".

The correct output as in the readme for print(ujson.dumps({"foo": "bar"}, indent=4)) is:

{
    "foo":"bar"
}

but since 2.0 the following is generated, which makes comparison (using diff) with JSON files generated with the still correct older version very difficult:

{
    "foo": "bar"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions