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

From: Date: Thu, 10 Sep 2026 10:56:10 +0000
Subject: Re: [Pre-RFC] Opt-in JSON comments and trailing commas
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-132470@lists.php.net to get a copy of this message
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

« previous php.internals (#132470) next »