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.