Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42276 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11645 invoked from network); 15 Dec 2008 22:34:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2008 22:34:52 -0000 Authentication-Results: pb1.pair.com header.from=mike503@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=mike503@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.229 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mike503@gmail.com X-Host-Fingerprint: 209.85.198.229 rv-out-0506.google.com Received: from [209.85.198.229] ([209.85.198.229:25214] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/63-24547-C8BD6494 for ; Mon, 15 Dec 2008 17:34:52 -0500 Received: by rv-out-0506.google.com with SMTP id g37so2940852rvb.23 for ; Mon, 15 Dec 2008 14:34:49 -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=K+6qq1iY+uLyHecqimqjAKh6ZASIrRzqhBGIEAJa4ho=; b=xlOXm+8uUpEpWD16aKYtzYiBo/9+NawLsIPTz75MivxvVj7XfO8KZL7mvf/fXz7fvj guTzUEV9+WODTF8QcftpiK9Lfg5P6/dE5f3Ul6KJI6wh30SFeSY4AXOxdWZHKig2ZqBK sMdBGWQn1sveuCln5+gg5ugpO4TWFHPA8gOkA= 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=eWv5x3t/JHDTgIL/P5gZUX8gEn6SipryzyFtkQHb0LfCoqbJN1h6aUU/Rca43SGEhM hJ3qs/LPVGWqdpr1KxSqcx64RpXgU1bzVC1BHOjBbCB/5jH554u2/gB0SdbhqwezU0Y9 xknZ2tLNTK1W50+iv64iRcIMYK99M9N9ZtOKY= Received: by 10.141.52.5 with SMTP id e5mr3956903rvk.55.1229380489266; Mon, 15 Dec 2008 14:34:49 -0800 (PST) Received: by 10.141.152.1 with HTTP; Mon, 15 Dec 2008 14:34:49 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 14:34:49 -0800 To: "John Carter -X (johncart - PolicyApp Ltd at Cisco)" Cc: "PHP Developers Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <494698D3.2030801@lerdorf.com> <7977336F527D4A70B0E4DD2870708686@VEGA> <98b8086f0812151310v29603f68kafdb168c6c4e94e9@mail.gmail.com> Subject: Re: [PHP-DEV] json_encode() From: mike503@gmail.com (mike) On Mon, Dec 15, 2008 at 1:43 PM, John Carter -X (johncart - PolicyApp Ltd at Cisco) wrote: > How about a strict mode added to the list of the current json_encode() > options? > > That way current code will continue to work and anyone reading the docs > will know the default behaviour isn't strictly correct. I'd rather have a "lazy mode" option, so by default it is spitting out correct JSON (according to specs)