class JsonConfigDeparser implements PluginConfigDeparser {
    private static final Logger LOG = LoggerFactory.getLogger(JsonConfigDeparser.class);

    @Override
    public String deparse(RuleEntity ruleEntity) {<FILL_FUNCTION_BODY>}
}

        if (ruleEntity == null) {
            throw new DiscoveryException("RuleEntity is null");
        }

        LOG.info("Start to deparse RuleEntity to json...");

        try {
            String config = JsonUtil.toPrettyJson(ruleEntity);

            LOG.info("Rule content=\n{}", config);

            return config;
        } catch (Exception e) {
            throw new DiscoveryException(e.getMessage(), e);
        }
    
<no_super_class>