support json format templating
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user