views:

94

answers:

3

I'm a Python programmer with experience using the json module. I've just meet CouchDB and seems very interesting.

I wonder know if JSON data structures can be directly saved as a CouchDB document.

Thanks,

A: 

couchDB is inteded to work with JSON. have a look here: http://wiki.apache.org/couchdb/HTTP_Document_API#POST you just POST a json document for storage.

ozk
I'm actually thinking about using python-couchdb package.
Juanjo Conti
A: 

CouchDB will accept any valid JSON Object as a document.

CapnKernul
+2  A: 

You only need to provide an unique ID that will be used as part of the resource name (URI) when PUTting it or you use POST and take an auto-generated ID. You can use any JSON, that does not contain _id and _rev, because these fields are reserved for CouchDB itself.

PartlyCloudy