incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Storing a doc I'd as json array string
Date Wed, 05 Mar 2014 15:40:26 GMT

On Mar 5, 2014, at 3:18 AM, Robert Samuel Newson <rnewson@apache.org> wrote:

> doc _ids have to be strings, you can’t use an array.

What Bob said.

You could always JSON-encode the array and use that string as the document ID. It’d be very
ugly (especially when encoded in a URL!) but it would probably work.

Or you could concatenate the components using some delimiter character (that can’t appear
in the components), the way everyone else does :)

—Jens
Mime
View raw message