Re: JSON float number as string

From: Date: Wed, 01 Apr 2015 18:47:35 +0000
Subject: Re: JSON float number as string
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-85649@lists.php.net to get a copy of this message
Hi Yasuo, On Wed, Apr 1, 2015 at 3:30 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > > There are too many options (4 options to be exact) for JSON to work safely > under HTML context currently. If user would not like to loose int/float > information, 6 options are needed. Number of options are better to be > reduced, so big +1 for string raw data by default. It may be better to have > > JSON_HEX_HTML_CHARS = JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | > JSON_HEX_QUOT > > It might make sense to introduce something like that. I'm not sure about the name but definitely will think about that and possibly open a new email thread as it's again a bit off topic :) Cheers Jakub

« previous php.internals (#85649) next »