Hello, I've been running a node-red app that sent a string URL via an HTTP REQUEST (that also included a SHA 256 encoded signature in the headers). Now I needed to send a request that had some nested parameters (array), started getting errors, and apparently the solution is to send it JSON object. I don't know how to proceed with this new approach. Thanks for your help.
[
{
"id": "cb5f584da001246b",
"type": "function",
"z": "5ef1a9875ae1c916",
"name": "json",
"func": "{\"account_id\": 555555,\n \"pair\": \"USDT_BTC\",\n \"position\": {\n \"type\": \"buy\",\n \"units\": {\n \"value\": \"0.01\"\n },\n \"order_type\": \"market\"\n },\n \"take_profit\": {\n \"enabled\": \"true\",\n \"steps\": [\n {\n \"order_type\": \"market\",\n \"price\": {\n \"value\": 10000,\n \"type\": \"bid\"\n },\n \"volume\": 100\n }\n ]\n },\n \"stop_loss\": {\n \"enabled\": \"false\"\n }\n}",
"outputs": 1,
"noerr": 6,
"initialize": "",
"finalize": "",
"libs": [],
"x": 510,
"y": 240,
"wires": [
[]
]
}
]