mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
Fix JSONPath function quoting strings
This commit is contained in:
1 parent
bbf2b6dec0
commit
d07272003b
1 file changed
+3
@@ -19,6 +19,9 @@ export const plugin: PluginDefinition = {
|
||||
if (Array.isArray(filtered)) {
|
||||
filtered = filtered[0];
|
||||
}
|
||||
if (typeof filtered === 'string') {
|
||||
return filtered;
|
||||
}
|
||||
|
||||
if (args.values.formatted) {
|
||||
return JSON.stringify(filtered, null, 2);
|
||||
|
||||
Reference in new issue
Block a user