Skip to content

_encode should use encode_json, not to_json #10

@eritain

Description

@eritain

JSON::encode_json produces a UTF-8 encoded binary string, which is what HTTP::Request expects.

JSON::to_json produces the corresponding Unicode string, which can coincidentally be byte-identical to the binary string depending on the codepoints used and on your Perl's internal representation, but can also be something else.

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