Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 68545 invoked from network); 31 Aug 2009 18:52:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Aug 2009 18:52:36 -0000 Received: (qmail 19107 invoked by uid 500); 31 Aug 2009 18:52:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 19053 invoked by uid 500); 31 Aug 2009 18:52:35 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 19043 invoked by uid 99); 31 Aug 2009 18:52:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 18:52:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.211.194 as permitted sender) Received: from [209.85.211.194] (HELO mail-yw0-f194.google.com) (209.85.211.194) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 18:52:26 +0000 Received: by ywh32 with SMTP id 32so6361022ywh.11 for ; Mon, 31 Aug 2009 11:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XVcahU/fD0h3bcHJj3DgruuSxDMy8NjYKj00q1S9VdY=; b=SK753f/ttNjf9xqbt29GbtwaIYo9MTRtdFIL8yICUHUnxpLymRDXEGzahE9nqBRoRB 0FzlyiD64sjLzyGmTpHMsrFiU9KLwaIgBwPxoUFklLIgx4ZUKYYA/Q72eBn8IVSY8byI G4pIgtHaBesdr07hIQPIYVt1Jc7fRvYKOxgCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=mQcg7QdU3Fji/BV9OyAiWJKEQjqICAPPMuDBWOabG4g0AQK7B7XqmKZ+qwpjrdrVQ2 K7XZqekVfikY1Hfo+TMKWSFNNMnaBUeHibXHSSeY3zstFyWhFRRQ+VAJYbXX1LqD1h1w hV42erb3hEYvk9+lMotgqqxeSBC19qyaeGTqI= MIME-Version: 1.0 Received: by 10.101.91.20 with SMTP id t20mr6095645anl.188.1251744724759; Mon, 31 Aug 2009 11:52:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 31 Aug 2009 14:52:04 -0400 Message-ID: Subject: Re: valid json string for mochijson2 From: Paul Davis To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Michael, Are you working in Erlang with something? If so, could you paste a short snippet of what you're trying to accomplish? Paul Davis On Mon, Aug 31, 2009 at 2:01 PM, Michael McCaffrey w= rote: > Hello, > > > > I'm trying to get a couchdb function to return a simple json doc and I > can't get it to validate thru mochijson2.encoder. > > > > Just trying to return {"fld","data"} and get the > {"error":"json_encode","reason":"{bad_term,{<<\"fld\">>,<<\"data\">>}}"} > error > > > > Running the encoder I see it expects {[{"fld","data"}]} =A0format which I > cannot get the couchdb function to produce. > > > > Any help on how to format this list of json docs in a couchdb function? > > > > Thanks > > > > > > > > > >