[ https://issues.apache.org/jira/browse/COUCHDB-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16078936#comment-16078936 ]
Joan Touzet commented on COUCHDB-3431: -------------------------------------- Reopening just to note that we even state this in the response: $ curl -X PUT localhost:15984/foo/bar -d '[{}]' {"error":"bad_request","reason":"Document must be a JSON object"} Even though what you are posting is valid JSON, it is not a valid CouchDB document. Sorry. > 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)