code: def load_json(cls, data, default_rule=None, raise_error=False):
          
  
          rules = {k: _parser.parse_rule(v, raise_error)
                   for k, v in json.loads(data).items()}
  
          return cls(rules, default_rule)
docs: Allow loading of JSON rule data.