benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 114 forks source link

empty json object in views #137

Closed lazedo closed 8 years ago

lazedo commented 8 years ago

i think there's a difference dealing with empty json objects. in https://github.com/benoitc/couchbeam/blob/master/src/couchbeam_ejson.erl#L63 [{}](returned by jsx) is replaced with {[]} but in views https://github.com/benoitc/couchbeam/blob/master/src/couchbeam_view_stream.erl#L306-L319 it is not. i think couchbeam_view_stream.erl should be corrected, thoughts ?

lazedo commented 8 years ago

https://github.com/benoitc/couchbeam/pull/139