Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @property
- def deserialized_content(self):
- if self.status_code != 200 or self.header['Content-Type'] != 'application/json':
- raise Exception
- if not self._deserialized and self.content:
- self._deserialized = json.loads(self.content)
- return self._deserialized
Advertisement
Add Comment
Please, Sign In to add comment