code: async def json(self, *, encoding: Optional[str]=None) -> Any:
          
          data = await self.read(decode=True)
          if not data:
              return None
          encoding = encoding or self.get_charset(default='utf-8')
          return json.loads(data.decode(encoding))
docs: Like read(), but assumes that body parts contains JSON data.