Skip to content

An empty object transforms to an empty string #15

@lenchvolodymyr

Description

@lenchvolodymyr

If you pass an empty object without carry line inside, the function returns an empty string, which fails JSON.parse.

To reproduce it you may run:

JSON.parse(jsonminify('{}'))

the expected output is '{}'

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