Using Docs Automator for the first time, and am struggling a bit with the API.
My template is quite large, and will have something like 200+ replacements, including several sets of line items.
Ideally, I want to pass everything as a single JSON payload, but the Docs Automator API seems unable to deal with complex nested JSON, as far as I can work out.
A simplified example of the data payload I want to send is something like the following:
{
"section1": {
"parameter1": "some value",
"parameter2": "another value"
},
"section2": {
"parameter1": "some value",
"parameter2": "some other value"
}
}
And then in my template, I would want to refer to the above like:
{{section1.parameter1}}
{{section1.parameter2}}
{{section2.parameter1}}
and so on…
Does anyone know if the above is doable, or do I just have to bite the bullet and flatten everything out into a long series of key/value pairs?
cc @Rupert