JSON.minify
JSON.minify copied to clipboard
Whitespaces and tabs after last quote and newline are not stripped
This is an example that fails (neither the tab not the last space are stripped):
source: "{"foo": "bar"\t} ", assert: "{"foo":"bar"}"
All tests in the suite end with \n, thus avoiding the problem, but I suppose that json without newlines are also intended to be supported?
I have tested javascript only, I don't know how other ports are behaving in this situation.