docs: def from_json(self, data, deref=False):
          """Decode the string from JSON to return the original object (if
          `deref` is true. Uses the `json.loads` function with `self.decode`
          as object_hook.
  
          :param data:
              JSON encoded string.
          :type data: str
  
          :param deref:
              Whether to decode records that gave `ref=True` at encoding.
          :type deref: bool"""
          return self.deep_decode(json.loads(data), deref)