Re: json_decode/encode should return full precision values by default
| From: | Stanislav Malyshev | Date: | Tue, 28 Jul 2015 00:44:39 +0000 |
| Subject: | Re: json_decode/encode should return full precision values by default | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87335@lists.php.net to get a copy of this message | ||
Hi!
> JSON is var exporter/importer like serialize/var_export.
>
> Both of serialize/var_export uses PG(serialize_precision), what's the
> point of
> _lose_ / _destroy_ original values while PHP could keep more precise values
> than now?
So you're saying JSON should use serialize_precision setting instead of
precision setting? That makes sense, I think it would be a reasonable
change.
--
Stas Malyshev
smalyshev@gmail.com