We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c65e3 commit b9c768bCopy full SHA for b9c768b
src/functions.js
@@ -126,6 +126,9 @@ const functions = (() => {
126
};
127
} else {
128
var space = prettify ? 2 : 0;
129
+ if(Array.isArray(arg) && arg.outerWrapper) {
130
+ arg = arg[0];
131
+ }
132
str = JSON.stringify(arg, function (key, val) {
133
return (typeof val !== 'undefined' && val !== null && val.toPrecision && isNumeric(val)) ? Number(val.toPrecision(15)) :
134
(val && isFunction(val)) ? '' : val;
test/test-suite/groups/function-string/case029.json
@@ -0,0 +1,6 @@
1
+{
2
+ "expr": "$string()",
3
+ "data": [4, true],
4
+ "bindings": {},
5
+ "result": "[4,true]"
6
+}
0 commit comments