JSON.pm isn't a parser. It's just a front-end ...

Sorry, you're right, I hadn't remembered that JSON.pm just calls one of the others as a back end.

but the parent post was clear that JSON.pm was the module being used directly.

The original post was clear that JSON.pm was the module originally being used directly. However, in the message I replied to, Cody Fendant said, "Upgrading JSON::PP and specifically using that has fixed it.", where I interpreted° "specially using that" as meaning "calling use JSON::PP instead of use JSON". And as you stated, and as my code shows, you do not have to specifically use JSON::PP in order to get it to work correctly, so one of my points -- that you can get it to work while calling JSON.pm directly -- is still valid.

edit: °... Though I see, after reading your other posts, that another possible reading is that they were manually selecting that JSON.pm use the JSON::PP backend. So maybe we've just been talking past each other, with different base assumptions on what certain phrasings implied. I agree with everything you said, but wanted to leave this as a clarification of what I said earlier.


In reply to Re^7: How do I make the JSON module convert true/false to 1/0 instead of a blessed Boolean object? by pryrt
in thread How do I make the JSON module convert true/false to 1/0 instead of a blessed Boolean object? by Cody Fendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.