def METHOD_NAME(self):
    """Creates a json string based on the object attributes.
    Returns:
        str: json str.
    """
    resource_dict = {
        'id': self.id,
        'creationTimestamp': self.creation_timestamp,
        'name': self.name,
        'description': self.description,
        'properties': self.properties}
    # Strip out empty values
    resource_dict = dict((k, v) for k, v in
                         list(resource_dict.items()) if v)
    return json.dumps(resource_dict, sort_keys=True)