Doc #68733 [NEW]: RFC7159 JSON allows top-level scalars

From: Date: Sat, 03 Jan 2015 04:20:56 +0000
Subject: Doc #68733 [NEW]: RFC7159 JSON allows top-level scalars
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11816@lists.php.net to get a copy of this message
From: lolphpbugs at rebertia dot com Operating system: PHP version: 5.6.4 Package: Documentation problem Bug Type: Documentation Problem Bug description:RFC7159 JSON allows top-level scalars 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 bug report at https://bugs.php.net/bug.php?id=68733&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68733&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68733&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68733&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68733&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68733&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68733&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68733&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68733&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68733&r=support Expected behavior: https://bugs.php.net/fix.php?id=68733&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68733&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68733&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68733&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68733&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68733&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68733&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68733&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68733&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68733&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68733&r=mysqlcfg

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