Skip to content

JSON minifying is too aggressive and alters strings #28

@mrackwitz

Description

@mrackwitz

If you use characters like square brackets ([]) or curly braces ({}) within a string, the surrounding whitespaces will be trimmed even tho strings shouldn't be altered.
e.g.

const s = '{ "foo": " {{ bar }} " }'
pd.jsonmin(s)
// '{"foo":"{{bar}}"}'

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