support json format templating

This commit is contained in:
Mitsuhiro Tanda
2019-02-07 14:07:41 +09:00
parent 6caae9167e
commit 4bd94b8aba

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