Only the client code should care about the content. So just transmit it as a byte slice containing json data.