Webhook response ResponseTemplate array handling


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


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


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?