mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:49:50 +02:00
Fix JSONPath function quoting strings
This commit is contained in:
@@ -19,6 +19,9 @@ export const plugin: PluginDefinition = {
|
|||||||
if (Array.isArray(filtered)) {
|
if (Array.isArray(filtered)) {
|
||||||
filtered = filtered[0];
|
filtered = filtered[0];
|
||||||
}
|
}
|
||||||
|
if (typeof filtered === 'string') {
|
||||||
|
return filtered;
|
||||||
|
}
|
||||||
|
|
||||||
if (args.values.formatted) {
|
if (args.values.formatted) {
|
||||||
return JSON.stringify(filtered, null, 2);
|
return JSON.stringify(filtered, null, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user