Skip to content

Unicode problem after regenerating #47

@kkzhang

Description

@kkzhang

A json string eg.

{"test": "\u4f60\u597d"}

parse it jsonObj = JSON.parse(s), then generate it newStr = JSON.generate(jsonObj)

the content of "newStr" is now

{"test": "你好"}

which is supposed to be identical with the original string( {"test": "\u4f60\u597d"} ).

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