toJson

open fun toJson(rules: Rules): JSONObject