[ 
https://issues.apache.org/jira/browse/COUCHDB-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joan Touzet closed COUCHDB-3431.
--------------------------------
    Resolution: Invalid

CouchDB is a document-oriented database, not an array-oriented database. As 
such, we require the top-level structure to be an object, not an array.

This is because, at the very least, we have to place an "_id":"<value>" in the 
object to act as the "primary key" via which to access the document itself. We 
couldn't do this if the top-level is an array.


> 400 error when posting valid JSON
> ---------------------------------
>
>                 Key: COUCHDB-3431
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3431
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: glen
>
> Is anything invalid about the first member of an array being an empty object?
> Please post [{}] to your Couch. Does your Couch return invalid json 400 
> error, or is it just me?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to