Implemented JSON for ruleset