Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mangled \u2026\u201d #5

Open
Veraellyunjie opened this issue Jul 30, 2024 · 0 comments
Open

mangled \u2026\u201d #5

Veraellyunjie opened this issue Jul 30, 2024 · 0 comments

Comments

@Veraellyunjie
Copy link

original .json: https://api.gog.com/v2/games/1211603686
the piece of text: “There’s a great deal of history that you should know…”
same text raw: \u201cThere\u2019s a great deal of history that you should know\u2026\u201d

those \u2026\u201d get distorted by Pegex::JSON:

> perl -MData::Dumper -MPegex::JSON -e \
    'print Dumper( Pegex::JSON->new->load( shift ))' \
    '{"test":"\u2026\u201d"}'
$VAR1 = {
          'test' => "\x{2026201d}"
        };

compare with core module JSON::PP:

> perl -MData::Dumper -MJSON::PP -e \
    'print Dumper( decode_json( shift ))' \
    '{"test":"\u2026\u201d"}'
$VAR1 = {
          'test' => "\x{2026}\x{201d}"
        };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant