Byte array will be base64 encoded in JSON.