code: public static String toPartitionJsonList(List<PartitionDescriptor> descriptors) {
      return Descriptor.GSON.toJson(descriptors, DESCRIPTOR_LIST_TYPE);
    }
docs: Serialize a list of partition descriptors as json string