0

I'm using Mason in one of my projects and I have a problem using the module JSON.

The page search.mhtml is working properly with other external modules (use DBI) but whenever I use the following code, the browser is giving me an error "No data received":

no data received

here is my code:

<%once>

use strict;
use JSON;

</%once>

bla

The script is just printing "bla" after the "<once>" tag ... and that's it .. When I remove the "use JSON" it's working ...

Any ideas?

fthiella
  • 48,073
  • 15
  • 90
  • 106
Ricky Levi
  • 7,298
  • 1
  • 57
  • 65

1 Answers1

0

Solved !

After debugging the JSON module I noticed it get stuck when trying to load the module JSON::XS.

I installed it and now everything works... FYI.

Ricky Levi
  • 7,298
  • 1
  • 57
  • 65