Otar Chekurishvili has opened a PHP Internals discussion for the proposal. It follows an earlier pre-RFC thread and remains under discussion.
JSON_ALLOW_COMMENTS would permit // line comments and /* block comments */ in input handled by json_decode() and json_validate(). JSON_ALLOW_TRAILING_COMMAS would accept one comma after the final item in a non-empty array or object. Strict JSON remains the default. json_encode() is outside the change.
The RFC compares the proposal with JSON5, JSONC and JWCC. JSONC is still a draft specification, and its treatment of trailing commas is optional. A single JSON_ALLOW_JSONC flag appears among the rejected features. The document also includes test results and performance measurements.
The implementation is available in php-src pull request 23336. Voting is split into two primary votes, one for each flag, and each vote requires a two-thirds majority. Tim Düsterhus called the reasoning behind the rejected JSONC flag solid and the RFC itself well written. He also asked for the discussion-thread link to be added to its header.




Comments
No comments yet — be the first.
Open the discussion
No account or password needed — just enter your e-mail and we’ll send you a one-time sign-in link. First time here? You’re set up automatically.
Your rating will be applied automatically after you sign in.
Check your inbox
We’ve sent a sign-in link to …. Open it on this device — this tab will sign you in automatically.
Nothing arrived? Check your spam folder — and mark the mail as "Not spam" so it lands in your inbox next time.