Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 50670 invoked from network); 3 Feb 2011 10:04:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2011 10:04:24 -0000 Received: (qmail 10483 invoked by uid 500); 3 Feb 2011 10:04:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 9938 invoked by uid 500); 3 Feb 2011 10:04:18 -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 9926 invoked by uid 99); 3 Feb 2011 10:04:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 10:04:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of imtrueshot@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 10:04:10 +0000 Received: by eyf18 with SMTP id 18so514234eyf.11 for ; Thu, 03 Feb 2011 02:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=JAaG7lm16l/EUGX7MATJtjab3pHetNLs2Km932owlkw=; b=Zw7RnvRa2lOrycUO0dOwY+z/fkAdjiA6cNVwzhNEYjz9pc3zXT7CFeI37fE1CAdKVj QrH3Qx5IGnkERInksgvG10qLKIvD6SzX6zg8uq5jZ48Iv/TSUXZm+RBB+9t1ClVG4bgC v9bPl6sLdptg9GEthmEYFEh2JYrrGd2WNBc5g= 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; b=a0YwyJxyPrA4btd85S3EXaTEB7yHshEycoF/XhLUpDPeOr9QNVaTvqsgqGN9wTph8u BXexB6vP0S9kg37XbC8Thg5JMDNaDvEV1g3MZD3N7gop4cfrzds8GIQ+MeHNUQjIzp5Y Yme9PwWHUAIgwf02/wMqViJu3chkPm8eNXAjA= MIME-Version: 1.0 Received: by 10.213.29.210 with SMTP id r18mr671535ebc.62.1296727428760; Thu, 03 Feb 2011 02:03:48 -0800 (PST) Received: by 10.213.15.67 with HTTP; Thu, 3 Feb 2011 02:03:48 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Feb 2011 05:03:48 -0500 Message-ID: Subject: Re: can I configure couchdb to output an object with variable name? From: George Burt To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd1d2d8c3049d049b5de135 --000e0cd1d2d8c3049d049b5de135 Content-Type: text/plain; charset=ISO-8859-1 You could use either a "show" or a "list" to transform the JSON ({"objectname" : "value"}) into the javascript (var myobj = {"objectname" : "value"}) you indicate. Let me know if you need an example. - George On Thu, Feb 3, 2011 at 4:18 AM, bryan rasmussen wrote: > In other words instead of being > {"objectname" : "value"} > > it returns > > var myobj = {"objectname" : "value"} > > Thanks, > Bryan Rasmussen > --000e0cd1d2d8c3049d049b5de135--