Merge pull request #15292 from mtanda/template_json_format

support json format templating
This commit is contained in:
Torkel Ödegaard
2019-02-07 14:05:09 +01:00
committed by GitHub
3 changed files with 14 additions and 0 deletions

View File

@@ -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)) {