Skip to content

to-json/pretty: "\uD83C\uDDE9\uD83C\uDDEA" is not pretty #56

@dolmen

Description

@dolmen

Pretty output is for humans. "\uD83C\uDDE9\uD83C\uDDEA" is not pretty.

What happens:

$ perl6 -MJSON::Fast -e 'say to-json "🇩🇪", :pretty'
"\uD83C\uDDE9\uD83C\uDDEA"

Expected output:

"🇩🇪"

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