in reply to Re^5: Making JSON::{PP,XS} not decode true/false to JSON::{PP,XS}::Boolean objects (\$)
in thread Making JSON::{PP,XS} not decode true/false to JSON::{PP,XS}::Boolean objects

Version 0.35 now treats a reference to a scalar as a Boolean so that users can encode, for example \0 and \1 as false and true. Tests and documentation have also been updated.

$j->encode( { a => \1, b => \0 } ) # '{"a":true, "b":false}'

Blessed refs work too.


Dave

  • Comment on Re^6: Making JSON::{PP,XS} not decode true/false to JSON::{PP,XS}::Boolean objects (\$)
  • Select or Download Code