in reply to Re^4: How do I make the JSON module convert true/false to 1/0 instead of a blessed Boolean object?
in thread How do I make the JSON module convert true/false to 1/0 instead of a blessed Boolean object?

Well my question is about JSON, but if the answer is to use one of the other modules specifically then I guess that works.

I would still say the documentation could be improved though.

  • Comment on Re^5: How do I make the JSON module convert true/false to 1/0 instead of a blessed Boolean object?

Replies are listed 'Best First'.
Re^6: How do I make the JSON module convert true/false to 1/0 instead of a blessed Boolean object?
by ikegami (Patriarch) on Jan 04, 2022 at 15:06 UTC

    That's not what I was suggesting. JSON.pm isn't a JSON parser. It's merely a front end for JSON::PP and JSON::XS. The post to which I was replying suggested that boolean_values works when JSON.pm acts as a front end for JSON::PP, but doesn't work when it acts as a front-end for JSON::XS. I was stating that this is incorrect. It works for both back ends.