I’m having some trouble parsing JSON using responseTemplate. The responses I’m getting look like:
[
{ "status" : "stuff" },
{ "status" : "things" }
]
…and my webhook.json looks like:
{
"event": "develop_builds",
"url": "https://circleci.com/api/v1/project/teespring/rails-teespring/tree/develop?circle-token=<mine>",
"requestType": "GET",
"headers": {
"Accepts": "application/json"
},
"responseTemplate": "{{#.}}{{status}}{{/.}}",
"mydevices": true
}
it works in the mustache online test app, but I’m not getting anything back when I call the webhook. Anything. The response function isn’t even being called.
Any guess what might be going on or how I can debug it?