in reply to Re: json Array with URI
in thread json Array with URI

However, I posted the $response->content; held in variable $json_text. (I thought this is the most important part to understand why decode_json fires an error.

As Corion and I already hinted at, it's pretty unlikely that you posted exactly what $json_text contains. Please use a module such as Data::Dumper or Data::Dump.

To output a CGI header with a different Content-Type, you can say print $q->header("application/json");

Replies are listed 'Best First'.
Re^3: json Array with URI
by IB2017 (Pilgrim) on Dec 27, 2018 at 17:06 UTC

    Thank you for this hint. I posted what a simple print gave me. print Dumper is of course more complete. Learnt a lot, as always.

      I posted what a simple print gave me.

      A print would've shown the extra Content-type: ... at the beginning too, so I'm guessing maybe you missed it when you copied & pasted into the post. The modules do make the delimiters a little more clear.