json.total @enumerator.size json.hits do json.merge!(@enumerator.load_batch.map { |obj| @formatter.call(obj, scrivito_user) }) end