creates a CSS ruleset from a json object