for (Rule rule : result.getHits()) {
json.beginObject();
json
+ .prop("id", rule.key().toString())
.prop("repo", rule.key().repository())
.prop("key", rule.key().rule())
.prop("lang", rule.language())
for (ActiveRule activeRule : result.getActiveRules()) {
json
.beginObject()
+ .prop("id",activeRule.key().toString())
+ .prop("inherit", activeRule.inherit())
+ .prop("override", activeRule.override())
.prop("severity", activeRule.severity())
+ .prop("parent", activeRule.parent())
.name("params").beginArray();
for (Map.Entry<String, String> param : activeRule.params().entrySet()) {
json.beginObject()