コード例 #1
0
 def json(self):
     """
     Deserialize response text containing JSON
     """
     if not self.text:
         return None
     return Json.load(self.text)
コード例 #2
0
ファイル: filesystem.py プロジェクト: gigaquads/embryo
 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
     )