support json format templating

This commit is contained in:
Mitsuhiro Tanda committed 2019-02-07 14:07:41 +09:00
1 parent 6caae9167e
commit 4bd94b8aba
1 file changed
+3
@@ -156,6 +156,9 @@ export class TemplateSrv {
}
return value;
}
case 'json': {
return JSON.stringify(value);
}
case 'percentencode': {
// like glob, but url escaped
if (_.isArray(value)) {