I can save an object into the database, but I can't retrieve the same object from the database.
For example,
I can save this:
{'x': ['foo', {'bar':2}]}
which gets translated to JavaScript like this:
_map(["x", ["foo", _map(["bar", (2)])]])
and when I retrieve that object from the DB, it looks like this:
Object
_list: Object
_map: Object
_keys: Array[6]
5: "x"
length: 6
proto: Array[0]
_loadLimit: 6
_numberOfDeleted: 0
_numberOfEntries: 1
_values: Array[6]
proto: Object
proto: Object
but instead it should look something more like this:
Object
x: Array[2]
0: "foo"
1: Object
bar: 2
proto: Object
length: 2
proto: Array[0]
proto: Object
I should be able to do this on retrieved object:
obj['x'][1].bar
I'll attach working JavaScript code.