You can use coerceTo
r.expr(['a', 'b']).map(function(key) {
return r.expr([[key, 42]]).coerceTo("OBJECT")
}).run(conn, callback)
The next version (1.12 -- coming this week?) introduced a new term r.object
that removes the need for coerceTo
.