The thing is that I only want what’s inside the stdout , not the exitCode nor the stderr. Basically, I just want the request to output the data just like this:
{
"query": "some JSON"
}
How can I do this using n8n?
P.S: When doing such a cURL request in my local machine terminal, I get the desired output, but not when using the n8n Execute command node.
However, it is possible to accomplish what you are trying to do with the execute command node. This workflow shows what you need to do, but the specific function you will want to add after the execute command to parse the json is below: