Webhook response ResponseTemplate array handling

Hi,

I’m experimenting with webhooks and can’t seem to get the ResponseTemplate working correctly when the response is a JSON array. E.G.:

[
    { "key" : "value" },
    { "key" : "value" }
]

If I set the ResponseTemplate to be

{{#.}}{{key}}{{/.}}

The response from Particle is undefined. If I do something like

{{#0}}{{key}}{{/0}}~{{#1}}{{key}}{{/1}}

that works, but obviously is not ideal as it requires knowledge of how long the response array will be.

Any ideas?

P.S. is it really not possible to edit an existing webhook in the web interface? It makes debugging this very time consuming.

Try using a text editor and the CLI to make modifications more deftly:

Thanks. That helps with debugging (still - why no editing!), but doesn’t solve the problem. Is this just not supported by the server?