I am unclear what you are trying to do. WHat do you mean when you say "When i hit that JSON"?
Usnig Workflow launcher for its intended purposes does not require clicking on JSON.
Workflow launcher lets you automatically invoke a workflow based on conditions.
That is, a change to AEM JCR content. For example, when a page is modified. In this example, the workflow launcher is configured to invoke a workflow when content under /content/geometrixx is modified. The result is the AEMExperts workflow automatically publishes the page.
You can achieve the behaviour of a workflow launcher also by using code. But in many cases, it makes sense to provide functionality as workflow steps, because the flexibility to reconfigure individual steps is much higher. You don’t need to change any code or configuration to reconfigure a workflow, disable a certain workflow step and disable the workflow completely.
To configure workflow launcher, perform these tasks:
1. Go to workflow console at http://localhost:4502/libs/cq/workflow/content/console.html.
2. Click the Launcher tab.
3. Click the Add button at the top left of the page.
4, Add the following information:
- Event Type: modified
- Node Type: nt:unstructured
- Path: /content/Geometrixx
- Workflow: AEMExperts
- Description: Activates Geometrixx pages
- Activate: leaved enabled
- Exclude List: Leave empty
- Run Mode(s): Author
5. Click OK.