Skip to content

couchdb won't automatically stringify JSON responses#4

Open
othiym23 wants to merge 1 commit intomamund:masterfrom
othiym23:master
Open

couchdb won't automatically stringify JSON responses#4
othiym23 wants to merge 1 commit intomamund:masterfrom
othiym23:master

Conversation

@othiym23
Copy link

@othiym23 othiym23 commented Apr 4, 2012

Probably a change in the last few releases of Couch, but in any case, had to make this change to get the scripts running properly.

@BigBlueHat
Copy link

Another option is to change the body key to json and CouchDB will Do The Right Thing with the object passed in and set the response header:
http://docs.couchdb.org/en/1.6.1/json-structure.html#response-object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants