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,
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,
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.
You only need to provide an unique ID that will be used as part of the resource name (URI) when PUT
ting 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.