add trigger with json