public static byte[] serializeDatasetsInJson(Dataset dataset) throws IOException {
    return objectMapper.writeValueAsBytes(dataset);
  }
Serialize the {@link Dataset} to json bytes that can be used in requests/responses.
@param dataset the {@link Dataset} to serialize.
@return the serialized bytes in json format.
@throws IOException
ambry-api/src/main/java/com/github/ambry/account/AccountCollectionSerde.java