Running an executable with JSON output

Hi,
I want to run a executable which returns JSON and use this JSON data in Hazel (5).
It's easy to run the executable in the "Passes shell script" part but I cannot use the returned data since Hazel just uses the exit code.
I tried running an executable in JS but every snippet I found on the internet didn't work.
Has someone achieved something comparable and could give me a hint?
Cheers
Jan
I want to run a executable which returns JSON and use this JSON data in Hazel (5).
It's easy to run the executable in the "Passes shell script" part but I cannot use the returned data since Hazel just uses the exit code.
I tried running an executable in JS but every snippet I found on the internet didn't work.
Has someone achieved something comparable and could give me a hint?
Cheers
Jan