bobthecow/genghis — Issue #7: Empty array and object field values are displayed the same
Author: jmikola
Created: 2012-03-02 23:15:22+00:00
State: open

This is likely a shortcoming of the PECL driver, not Genghis, but I wanted to run it by you anyway. I have two records in Mongo that have an array and object for a particular field.

```
> db.program.find(ObjectId("4eefe2977cdec12246000474"), {foo:1});
{ "_id" : ObjectId("4eefe2977cdec12246000474"), "foo" : [ ] }
> db.program.find(ObjectId("4f5152f122f0e15429001078"), {foo:1});
{ "_id" : ObjectId("4f5152f122f0e15429001078"), "foo" : { } }
```

Genghis happens to render both instances of `foo` as `[]` when displaying the documents, although MongoDB's JS console will properly differentiate.