Re: [PHP-DEV] [Pre-RFC] Opt-in JSON comments and trailing commas

[email protected] (Tim Düsterhus)
Newsgroups php.internals
Message-ID <[email protected]>
Hi

On 2026-08-18 03:20, Anton Smirnov wrote:
> That is a language known as Microsoft's JSONC or Nigel Tao's JWCC (JSON 
> with Comments and Commas) they are effectively equivalent

I think this proposal makes sense and with regarding to Otar's questions 
regarding naming, I think a single JSON_ALLOW_JSONC flag to allow both 
comments and trailing commas would be the best option. If there's an 
existing, reasonably widely accepted standard for that, we should just 
reference it and not add separate flags that result in a combinatorial 
explosion.

Best regards
Tim Düsterhus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.