in reply to Re^2: JSON::XS and blessings
in thread JSON::XS and blessings

true is the problem but I don't know why it's a problem. It roundtrips fine for me with 2.26. :|

Replies are listed 'Best First'.
Re^4: JSON::XS and blessings
by cshavit (Novice) on Oct 13, 2015 at 20:30 UTC
    Indeed. Likewise false has a similar problem. Turns out that the other special case, null roundtrips just fine.

    And like I said, everything works fine from a shell command line, and in one of the virtual hosts. It's the other VirtualHost that causes problems.

      Of course null causes no problem; that just gets mapped to undef. true and false get mapped to bless $Class, \$bool. It appears that one of your systems is blessing into a class that is not special-cased in the other direction. Perhaps this is because the TO_JSON() method is not being defined. But, no, I have no idea why it gets defined on one server and not on the other. Surely, there are differences between the servers, despite you thinking that there are none.

      - tye