def json(self): """ Deserialize response text containing JSON """ if not self.text: return None return Json.load(self.text)
def write(self, abs_path: Text, data) -> None: Json.write( abs_path, Json.load(Json.dump(data)), ident=self._indent, sort_keys=self._sort_keys )