>
>
> Not sure why it hasn't been announced here, but there's Mojo::JSON_XS 
> already.
>
>     https://metacpan.org/pod/Mojo::JSON_XS
>
> --
> sebastian
>

I use this mentioned solution and recently I found one issue. There is 
monkeypatch on MOJO::JSON::true (and false) which looks like:

monkey_patch 'Mojo::JSON', 'true',  sub { Cpanel::JSON::XS::true() };

and Mojo::JSON has following method:

sub true () {$TRUE}


The problem is that in _decode_value Mojo::JSON still uses $TRUE variable 
instead of calling correctly monkeypatched true() method,

return $TRUE if /\Gtrue/gc; # seems that it would work with "return true()"


 As the result all Boolean values are still decoded to Mojo::JSON::_Bool 
which later are not handled correctly by JSON::XS encoder (with 
allow_bleseed & convert_blessed enabled). Do you have some idea how can I 
easily handle these boolean values? 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to