Hi,

I would like to introduce my and Pasindu's RFC that proposes adding of new
JSON options for converting number values to string when decoding and/or
encoding:

https://wiki.php.net/rfc/json_numeric_as_string

Personally I'm not a big fun of these options because of their drawbacks
(see RFC section about that) and because I think that Json Scheme is a
better way to go. However I'm not sure when and if I have time for Json
Schema implementation, so this could be useful for some users the meantime.
That is especially case of JSON_FLOAT_TO_STRING for decoding (encoding is a
bit weird at it requires usage ini precision to do something useful). That
(decoding) seems like a sort of a variant of JSON_BIGINT_TO_STRING for
floats. That will be probably the only option that I will be vote for.

Cheers

Jakub

Reply via email to