in reply to Re^2: JSON error '"' expected, at character offset 1
in thread JSON error '"' expected, at character offset 1

What's wrong with using a module, and why would you rather do it wrong? (Your thing won't work if any string contains a double quote, for example.)
  • Comment on Re^3: JSON error '"' expected, at character offset 1

Replies are listed 'Best First'.
Re^4: JSON error '"' expected, at character offset 1
by odrevet (Acolyte) on Jan 05, 2010 at 13:21 UTC
    Right, I finally use JSON::PP because the JSON I get is really bad, so I need thoses allow_xxx methodes.

    Your regep is still a nice pice of code for the ones who need to use JSON::XS.

    Thanks again St ikegami, you've got my 畏敬 respect.