Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 96898 invoked from network); 30 Dec 2008 16:29:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Dec 2008 16:29:54 -0000 Received: (qmail 41193 invoked by uid 500); 30 Dec 2008 16:29:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41159 invoked by uid 500); 30 Dec 2008 16:29:53 -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 41148 invoked by uid 99); 30 Dec 2008 16:29:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 08:29:53 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.14.252.157] (HELO po-out-1718.google.com) (72.14.252.157) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 16:29:42 +0000 Received: by po-out-1718.google.com with SMTP id b23so10976684poe.4 for ; Tue, 30 Dec 2008 08:29:19 -0800 (PST) Received: by 10.141.153.17 with SMTP id f17mr7342736rvo.99.1230654558596; Tue, 30 Dec 2008 08:29:18 -0800 (PST) Received: by 10.141.172.2 with HTTP; Tue, 30 Dec 2008 08:29:18 -0800 (PST) Message-ID: Date: Tue, 30 Dec 2008 11:29:18 -0500 From: "Matthew Wilson" To: user@couchdb.apache.org Subject: Loading json files to / from couch? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I'm using ditz [1] to keep track of to-do lists. It puts each issue in a separate YAML file, and then it uses a bunch of command-line utilities to read and write those files. I want to build a web interface using couchdb. Apparently, JSON is a subset of YAML. So, if I convert all the YAML files to proper JSON, how would I load all those files into couchdb? Also, how would I dump all the JSON from couchdb back out? I want to use a web interface so I can do stuff like drag issues from one milestone to another. Matt [1] http://ditz.rubyforge.org -- Matthew Wilson matt@tplus1.com http://tplus1.com