code: def to_json(self):
      
      return {self.NAMESPACE_RANGE_PARAM: self.ns_range.to_json_object(),
              self.BATCH_SIZE_PARAM: self._batch_size}
docs: Serializes all the data in this query range into json form.
  
      Returns:
        all the data in json-compatible map.