json.total @batch.total json.continuation @batch.continuation json.hits @batch.objs do |obj| json.id obj.id json.serialized_obj @formatter.call(obj, scrivito_user, controller.view_context) end