decryptJson = (data, key) =>
  decrypt(data, key).then((decryptedValue) =>
    decoding.readAny(decoding.createDecoder(new Uint8Array(decryptedValue)))
  )
@param {Uint8Array} data
@param {CryptoKey?} key
@return {PromiseLike<Object>} decrypted object