transform local object to JSON
        :return: JSON object

def endpoint_2_json(self):
        """
        transform local object to JSON
        :return: JSON object
        """
        LOGGER.debug("Endpoint.endpoint_2_json")
        json_obj = {
            "endpointID": self.id,
            "endpointURL": self.url,
            "endpointParentNodeID": self.parent_node_id,
            "endpointTwinEndpointsID": self.twin_endpoints_id,
            "endpointProperties": self.properties
        }
        return json_obj