Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 46623 invoked from network); 20 Dec 2009 02:48:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Dec 2009 02:48:53 -0000 Received: (qmail 47375 invoked by uid 500); 20 Dec 2009 02:48:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 47249 invoked by uid 500); 20 Dec 2009 02:48:52 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 47239 invoked by uid 99); 20 Dec 2009 02:48:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2009 02:48:52 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcd-couchdb-2@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2009 02:48:41 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NMBqD-0005dd-At for dev@couchdb.apache.org; Sun, 20 Dec 2009 03:48:17 +0100 Received: from dsl-63-249-119-34.static.cruzio.com ([63.249.119.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Dec 2009 03:48:17 +0100 Received: from rogerb by dsl-63-249-119-34.static.cruzio.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Dec 2009 03:48:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@couchdb.apache.org From: Roger Binns Subject: Re: upgrading to json2.js Date: Sat, 19 Dec 2009 18:47:54 -0800 Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dsl-63-249-119-34.static.cruzio.com User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Anderson wrote: > I propose we make this change now, by replacing our current JSON > handling with json2.js, the current reference implementation. There is also a nasty bug in the older version currently used by couchjs. If you specify a replacer function when calling JSON.stringify and the item being examined is a function then the output of the replacer function is completely ignored. (I was returning a string.) Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkstkFoACgkQmOOfHg372QTSyQCgr9A8scp7Vxk+2ZCmPUba0e5P P6oAoLIcQFWPquv4UTqz/+PRigsDQjZj =d2vQ -----END PGP SIGNATURE-----