code: def setAttributesJson(self, attributesJson):
          
          try:
              self._attributes = json.loads(attributesJson)
          except:
              raise exceptions.InvalidJsonException(attributesJson)
          return self
docs: Sets the attributes dictionary from a JSON string.