Doc #68733 [Opn->Csd]: RFC7159 JSON allows top-level scalars

From: Date: Tue, 06 Jan 2015 00:43:28 +0000
Subject: Doc #68733 [Opn->Csd]: RFC7159 JSON allows top-level scalars
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11828@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68733&edit=1 ID: 68733 Updated by: aharvey@php.net Reported by: lolphpbugs at rebertia dot com Summary: RFC7159 JSON allows top-level scalars -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: 5.6.4 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Updated to mention the newer RFC and ECMA standard. Previous Comments: ------------------------------------------------------------------------ [2015-01-06 00:43:14] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=335638 Log: Update the note on JSON standard conformance. Fixes doc bug #68733 (RFC7159 JSON allows top-level scalars). ------------------------------------------------------------------------ [2015-01-03 04:20:55] lolphpbugs at rebertia dot com Description: ------------ --- From manual page: http://www.php.net/intro.json --- This page of your docs contains the following note: > Note: > PHP implements a superset of JSON - it will also encode and decode scalar types and NULL. The > JSON standard only supports these values when they are nested inside an array or an object. This statement regarding the JSON standard is inaccurate as of RFC 7159 (https://tools.ietf.org/html/rfc7159 ): > Appendix A. Changes from RFC 4627 > [...] > o Changed the definition of "JSON text" so that it can be any JSON > value, removing the constraint that it be an object or array. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68733&edit=1

« previous php.doc.bugs (#11828) next »