use JSON for giving data to trigger