Re: New JSON parser
| From: | Andrea Faulds | Date: | Thu, 13 Mar 2014 22:52:19 +0000 |
| Subject: | Re: New JSON parser | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73135@lists.php.net to get a copy of this message | ||
On 13 Mar 2014, at 22:37, Marco Schuster <marco+php@m-s-d.eu> wrote:
> At least for the decoding part, it might be worth to look at the
> "Improving JSON" proposal (http://bolinfest.com/essays/json.html).
> tl;dr: support trailing or automatic line-end commas, //-style
> comments and keys not wrapped in "s, basically extend JSON syntax to
> ES5.
>
> I think it would be really cool if the new parser could (maybe with a
> option "JSON_NO_STRICT_PARSING") implement these enhancements to ease
> hand-writing of JSON files.
Please, I urge you *not* to implement anything except the pure JSON standard. One of JSON’s great
strengths is that there is only a single, canonical JSON standard. Implementing other standards
would be damaging to interoperability.
If people want nice config files, they can use PHP ;)
--
Andrea Faulds
http://ajf.me/