Re: [PHP-DEV] Support JSON With Commas and Comments (JWCC) in json_decode

2021-02-27 Thread Craig Francis
On Tue, 23 Feb 2021 at 18:46, Rowan Tommins wrote: > On 23/02/2021 18:21, Pavel Djundik via internals wrote: > > See https://nigeltao.github.io/blog/2021/json-with-commas-comments.html > > for more information. > > ... > > Perhaps this could be disabled by default and made opt-in with a > >

Re: [PHP-DEV] Support JSON With Commas and Comments (JWCC) in json_decode

2021-02-23 Thread Rowan Tommins
On 23/02/2021 18:21, Pavel Djundik via internals wrote: See https://nigeltao.github.io/blog/2021/json-with-commas-comments.html for more information. It is quite common to have trailing commas in JSON, and a lot of parsers support it. I believe this could be trivially supported by PHP, even if

[PHP-DEV] Support JSON With Commas and Comments (JWCC) in json_decode

2021-02-23 Thread Pavel Djundik via internals
See https://nigeltao.github.io/blog/2021/json-with-commas-comments.html for more information. It is quite common to have trailing commas in JSON, and a lot of parsers support it. I believe this could be trivially supported by PHP, even if you skip adding support for comments. Perhaps this could