couch_docs icon indicating copy to clipboard operation
couch_docs copied to clipboard

Make read_json_value handle "true" and "false"

Open ziggythehamster opened this issue 12 years ago • 1 comments

When I was attempting to push my docs back to CouchDB, I found that some of my design documents had certain properties serialized as literally "false" or "true". I don't necessarily disagree with that, but then the JSON parser complains. So this makes it return false or true when that's all in the file, which makes my docs import as expected.

If there's a cleaner way to fix this, please let me know and I'll submit a better patch :)

ziggythehamster avatar Sep 22 '12 05:09 ziggythehamster

Thanks for the PR! Can you make sure that the specs still pass? I'll try to have a look myself when I get a chance...

eee-c avatar Oct 05 '12 01:10 eee-c