@property<EOL><INDENT>def payload(self):<DEDENT>
if self.is_json:<EOL><INDENT>if not self._body_parsed:<EOL><INDENT>if hasattr(self._body, '<STR_LIT>'):<EOL><INDENT>body = self._body.decode('<STR_LIT:utf-8>')<EOL><DEDENT>else:<EOL><INDENT>body = self._body<EOL><DEDENT>self._body_parsed = json.loads(body)<EOL><DEDENT>return self._body_parsed<EOL><DEDENT>else:<EOL><INDENT>return self._body<EOL><DEDENT>
Returns:
  `str` when not json.
  `dict` when json.