private ReadableStreamChannel setChunkBlobIdsInResponseChannel(GetBlobResult result)
        throws RestServiceException {
      JSONObject jsonObject = new JSONObject();
      List<StoreKey> blobChunkIds = result.getBlobChunkIds();
      if (blobChunkIds == null || blobChunkIds.isEmpty()) {
        jsonObject.put(BLOB_CHUNK_IDS_KEY, new ArrayList<>());
      } else {
        for (StoreKey blobChunkId : blobChunkIds) {
          jsonObject.append(BLOB_CHUNK_IDS_KEY, blobChunkId.getID());
        }
      }
      return FrontendUtils.serializeJsonToChannel(jsonObject);
    }
Set chunk blob Ids for composite blob in response channel.
@param result The result of the request i.e a {@link GetBlobResult} object with the properties of the blob.
@return a {@link ReadableStreamChannel} that represents the response to the {@code restRequest}.
@throws RestServiceException if there's any error during serialization.
ambry-frontend/src/main/java/com/github/ambry/frontend/GetBlobHandler.java