Re: [PHP-DEV] [RFC] JSON number to string

2015-05-25 Thread Alexey Zakhlestin
> On 25 May 2015, at 18:40, Jakub Zelenka wrote: > >> Anyway, as I told in a previous thread, while approach of this rfc solves >> immediate problem, it is not future-proof flexible and exposing low-level >> type based parsing is a better idea >> > IIRC your initial proposal was about convert

Re: [PHP-DEV] [RFC] JSON number to string

2015-05-25 Thread Jakub Zelenka
Hi, On Mon, May 25, 2015 at 7:59 AM, Alexey Zakhlestin wrote: > > > I'm not sure how JSON Schema would help here. The issue is about > converting from json's huge numbers to limited PHP's numbers. Schema just > doesn't have notion of native types > > The idea would be to use JSON schema to specif

Re: [PHP-DEV] [RFC] JSON number to string

2015-05-25 Thread Alexey Zakhlestin
> 24 мая 2015 г., в 19:02, Jakub Zelenka написал(а): > > 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