note 115134 deleted from function.json-encode by tularis

From: Date: Thu, 04 Feb 2016 08:32:49 +0000
Subject: note 115134 deleted from function.json-encode by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-204854@lists.php.net to get a copy of this message
Note Submitter: Joe P ---- > 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 is patently false. Nowhere in the standard does it say that only objects or arrays may be represented. The standard lays out what a value consists of and any value type is legal. Interpreters on other platforms which don't allow scalar types are incorrectly (and probably terribly) coded.

« previous php.notes (#204854) next »