code: def update_json(self, fields=None):
          
          response = self.update_raw(fields)
          response.raise_for_status()
          return response.json()
docs: Update the current entity.
  
          Call :meth:`update_raw`. Check the response status code, decode JSON
          and return the decoded JSON as a dict.
  
          :param fields: See :meth:`update`.
          :return: A dict consisting of the decoded JSON in the server's
              response.
          :raises: ``requests.exceptions.HTTPError`` if the response has an HTTP
              4XX or 5XX status code.
          :raises: ``ValueError`` If the response JSON can not be decoded.