Encodes the given input into a JSON ByteArray using the configured Jackson mapper.
serialized JSON payload.
domain value to serialize.