transform this local object to JSON. If properties only ignore the component blob (awaited by Ariane Server)
        :param properties_only: true or false
        :return: the JSON from this local object

def injector_component_2_json(self, properties_only=False):
        """
        transform this local object to JSON. If properties only ignore the component blob (awaited by Ariane Server)
        :param properties_only: true or false
        :return: the JSON from this local object
        """
        LOGGER.debug("InjectorCachedComponent.injector_component_2_json")
        if properties_only:
            json_obj = {
                'componentId': self.id,
                'componentName': self.name,
                'componentType': self.type if self.type is not None else "not defined",
                'componentAdminQueue': self.admin_queue,
                'refreshing': 'true' if self.refreshing else 'false',
                'nextAction': self.next_action,
                'jsonLastRefresh': self.json_last_refresh,
                'attachedGearId': self.attached_gear_id
            }
        else:
            json_obj = {
                'componentId': self.id,
                'componentName': self.name,
                'componentType': self.type if self.type is not None else "not defined",
                'componentAdminQueue': self.admin_queue,
                'refreshing': 'true' if self.refreshing else 'false',
                'nextAction': self.next_action,
                'jsonLastRefresh': self.json_last_refresh,
                'attachedGearId': self.attached_gear_id,
                'componentBlob': self.blob
            }
        return json_obj