Reputation: 30023
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,
Upvotes: 0
Views: 790
Reputation: 21241
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.
Upvotes: 3
Reputation: 2022
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.
Upvotes: 0