I’m needing to add an array to a post request
Not sure the best way to add these into the value correctly.
[ { “ip”: { “ip”: “8.8.8.8/32” } }]
I feel I should know this, but my mind is blank. (don’t want to change it to a RAW post if I can help it)
Hi @RedPacketSec, the example you have provided would be converted to a String when sending the request. To send a JSON object as the body you’d need the JSON/RAW Parameter option indeed.
I was hoping i didnt have to do that ![]()
that’s annoying, but thanks for the confirmation
i’ll give it another go when back at pc

yes i used the set node, no, i didnt try ip.ip
will give it a try
I only found out about that little trick the other day.
So what you could do is use a function item node and just do $node["Set"].json["ip"]["ip"] = $node["SSH"].json["stdout"];
Then next time you use $node["Set"].json it will have the ip set to your return result. It is not pretty but the example below shows it in action.
nice will give it a try when I get a few mins spare to pop back and play with my n8n stuff, cheers