pali

Results 504 comments of pali

https://github.com/HarpyWar/pvpgn/pull/19

I would suggest to enable `->unblessed_bool`, `->type_all_string` and `->require_types` options by default in new module to have JSON encoding deterministic across different Perl versions, see: http://e-choroba.eu/18-yapc

`->type_all_string` already implies types, so `->require_types` is OK and existing code would not be broken. It is also written in documentation: https://metacpan.org/pod/Cpanel::JSON::XS#$json-=-$json-%3Erequire_types-([$enable])

Currently all other JSON encoders randomly changes their behavior when updating Perl itself. This is really problematic and for more people very surprised. I already heard advice: Do not upgrade...

@karenetheridge I'm referring to the fact which @choroba described that JSON types are being changed when updating Perl.

@mla This is not problem in Cpanel::JSON::XS, but rather in your provided example. This code ```perl my $assignee_id = 5439409363; ``` on 32bit perl assigns into variable `assignee_id` floating point...

@rurban Problem is that conversion to float is done by perl itself prior passing value to Cpanel::JSON::XS. So it is something which cannot be changed or fixed in Cpanel::JSON::XS. It...

Let say it in other words: For 32bit perl is token `12345678901234567890` floating point number equivalent to `1.23456789012346e+19`. In same way token `5439409363` is also floating point. Also token `4.5`...

I do not know what is `JSON::XS` doing differently, but as stated in previous comments, I think that `Cpanel::JSON::XS` gives correct result for your provided example. We know that `JSON::XS`...