I’m pulling data from one API, doing some manipulations and pushing into another API.
For example, extracting Initiatives from Perdoo into Tasks in ASANA.
This mostly works just fine except every now and then I get JSON formatting errors as the data pulled from one API includes characters that need to be escaped in the JSON post to the other API.
For example, I have a BODY payload for the ASANA task creation like so:
{
"data": {
"completed": false,
"custom_fields": {
"1174838407251453": "{progress}",
"1174838407251441": "{perdooid}"
},
"due_on": "{due_on}",
"name": "{name}",
"notes": "Perdoo initiative created.",
"projects": [
"1174838407251433"
],
"resource_subtype": "default_task",
"start_on": "{start_on}"
}
}
The {name}
field is the issue as it occasionally has characters that break JSON without escaping.
I need an option to either:
- JSON format strings in a column, or;
- JSON format the
{columnname}
by default or as an advanced option
Is either option possible now?