code: def document(self, result):
          
          self._add_meta(result)
          walker = JsonWalker(JsonWalker.value_json, JsonWalker.dict_expand)
          r = walker.walk(result)
          return r
docs: Build dict for MongoDB, expanding result keys as we go.