in reply to Re: malformed UTF-8 character in JSON string
in thread malformed UTF-8 character in JSON string

JSON within a JSON gives a lot of trouble regarding UTF-8/Unicode with the JSON and JSON::XS modules. I pretty much resigned to ban this constellation from all my projects. No matter what i tried, i couldn't get it to work.

The problem seems to stem from the fact that the first (outer) decode also decoded the UTF-8 from the inner JSON, which made it an invalid JSON string for the second (inner) decode.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
  • Comment on Re^2: malformed UTF-8 character in JSON string