Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67843 invoked from network); 16 Dec 2008 16:14:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2008 16:14:13 -0000 X-Host-Fingerprint: 84.140.226.33 p548CE221.dip.t-dialin.net Received: from [84.140.226.33] ([84.140.226.33:13576] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/90-64755-3D3D7494 for ; Tue, 16 Dec 2008 11:14:13 -0500 Message-ID: To: internals@lists.php.net Date: Tue, 16 Dec 2008 17:14:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 References: <494698D3.2030801@lerdorf.com> In-Reply-To: <494698D3.2030801@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 84.140.226.33 Subject: Re: json_encode() From: karsten@typo3.org (Karsten Dambekalns) Hi. On 15.12.2008 18:50 Uhr, Rasmus Lerdorf wrote: > Ok, so as promised I ran some of the options we have that came up last > week by Douglas Crockford. > > 1. Document the fact that if you want to strictly conform to the JSON > spec and be sure your json_encode output will work in various JSON > parsers, you have to pass it a PHP array or object. +1 Karsten Dambekalns