lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Better warning on submitting unJSON'able documents #119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to save a python list as the document (e.g db['foo'] = ['test'])

What is the expected output? What do you see instead?

A warning saying 'Document must be a convertible to JSON'. instead I get 
'Document must be a JSON object'

Original issue reported on code.google.com by tim.par...@gmail.com on 24 Mar 2010 at 10:40

GoogleCodeExporter commented 8 years ago
This warning comes from the json library used. We support a number of them, so 
I think you should take this up with whatever library you use. Unless you're 
doing anything special that's probably either simplejson or stdlib json.

Original comment by djc.ochtman on 22 Dec 2010 at 12:03