Skip to content

UTF8JsonGenerator copies the static singleton of DEFAULT_PRETTY_PRINTER, then uses it during the JSON serialization. #54

@amiravi

Description

@amiravi

In 2.19 this commit was introduces #41 with the line PrettyPrinter defaultPrettyPrinter = writer.getConfig().getDefaultPrettyPrinter();
which causes the UTF8JsonGenerator to use DEFAULT_PRETTY_PRINTER and changes the default _nesting value during serialization.

This can cause inconsistency during serialization, in case one needs to calculate a checksum for the result, and suddenly getting a response with extra spaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.19bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions