A JSON body is encoded as defined for the JSON message mapping defined in 7.2.4.6.9.

The optional Kafka header with ContentType key can be set to application/json when sending uncompressed JSON messages.

When sending a gzip (RFC 1952) compressed JSON message on Kafka the optional Kafka header with ContentType key can be set to application/json+gzip.

A UADP body is encoded as defined for the UADP message mapping defined in 7.2.3.

It is expected that the software used to receive UADP NetworkMessage can process the body without needing to know how it was transported.

When sending such message the optional Kafka header with ContentType key can be set to application/opcua+uadp.