Allow loading of JSON rule data.

def load_json(cls, data, default_rule=None, raise_error=False):
        """Allow loading of JSON rule data."""

        rules = {k: _parser.parse_rule(v, raise_error)
                 for k, v in json.loads(data).items()}

        return cls(rules, default_rule)