G'day bigup401,
Some things for you to check:
-
The value of "$res->content".
-
The value of "$respons".
-
"$respons" is a hashref, with a "data" key, whose value is also a hashref, with a "data" key.
-
Why you're assigning the same value to "$qu" and "$je".
-
Whether you really need to "remove all JSON::XS lines" or does the problem go away if you remove just some;
in other words, track down the actual line(s) causing the problem.
-
That you are using the strict and warnings pragmata.
Some things you haven't provided to us:
-
Sample input.
-
Actual output (even if it's "not readable by browser").
-
Expected output.
-
Error or warning messages (++marto already mentioned this).
-
The versions of Perl and JSON::XS that you're using.
-
The encoding of your input data. (Have you tried using methods such as ascii(), latin1(), or utf8().)
You could also check whether the JSON
or JSON::PP modules have the same problems.
Be aware of an incompatibility issue
with JSON and JSON::XS.
Providing an SSCCE, that allows us to exactly reproduce your problem,
will greatly improve your chances of receiving a succinct answer.