Closed AndyMcKenna closed 2 years ago
What are we saying is the issue here, that it outputs empty (surely this) or that it outputs 0!
rather than true
?
That it outputs empty, yeah. It's outputting empty because the true
gets converted to !0
along the way and that's what is causing the invalid JSON node warning
yep, on it.
Describe the bug In v1.18.0, when minimizing JSON with a boolean property, the true/false value is stripped in the output
To Reproduce Modify the TestScripts.Json test method
Minified output or stack trace From the test:
I tracked it down to
true
getting changed to!0
which looks like it's controlled byTreeExpressions.BooleanLiteralsToNotOperators
but I can't find what setting sets that flag onKillSwitch