Clarification about encoding of BYTES data in JSON might be useful. For example, TFServing specifies that binary data be encoded using base64: https://www.tensorflow.org/tfx/serving/api_rest#encoding_binary_values