Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56382 invoked from network); 16 Dec 2008 15:21:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2008 15:21:11 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.237 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.237 rv-out-0506.google.com Received: from [209.85.198.237] ([209.85.198.237:52090] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/A4-30437-667C7494 for ; Tue, 16 Dec 2008 10:21:10 -0500 Received: by rv-out-0506.google.com with SMTP id f9so1183732rvb.6 for ; Tue, 16 Dec 2008 07:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=M18403udlHykT/94ubigYp5In0UxuViGXFV2KEH+S0E=; b=o6VHcy7ixBExJSIaWa7cRkXEiUsVXw3VXp1tnj8UjJJGcqyosFa9OztKRHIsbgtGn3 YOc2vdZ7hazm+Um3UoUOneY39djjPw6uxtVWP5A6uFfwgzY4Z+Pg+wLLy+eiMfYMJyZD BQRJ4ZAtRAWOJe3eqlNrX2GAMXtVsJ9LifJWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Jv9BNHE7P17Zb3XC+V9UOiSYIgV0ko0OwIVUtyI8viyGokqHh5ysX8t+Y78EDlTi7A sDhDJbkkJdFwvnqOp/dH7IepaWbM/Pws1/P0NyM57de4QCJm6rrDsu8KjVcnYhpPBts5 TF6tHBax2C/a+wv9qtRBKUz6eLSuVg+8mPQjM= Received: by 10.141.5.3 with SMTP id h3mr4369345rvi.213.1229440867713; Tue, 16 Dec 2008 07:21:07 -0800 (PST) Received: by 10.140.194.1 with HTTP; Tue, 16 Dec 2008 07:21:07 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 16:21:07 +0100 To: "Rasmus Lerdorf" Cc: "PHP Developers Mailing List" In-Reply-To: <494698D3.2030801@lerdorf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <494698D3.2030801@lerdorf.com> Subject: Re: [PHP-DEV] json_encode() From: pierre.php@gmail.com ("Pierre Joye") On Mon, Dec 15, 2008 at 6:50 PM, 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 Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org