Type

value

The value part of attribute key-value pairs.

This corresponds with the AnyValue type defined in the attribute spec. Because WIT doesn't support recursive types, the data needs to be serialized. JSON is used as the encoding format.

Byte arrays require special encoding since JSON cannot distinguish them from number arrays. They are base64-encoded with a prefix that follows the Data URI RFC 2397 convention: data:application/octet-stream;base64,<BASE64_ENCODED_BYTES>

type value = value;