API
API copied to clipboard
JSON: newlines and tabs disappear in strings
JSON.stringify("a\n\t")
-> "a"
would be nice if we had JSON in the core.
I should check if the JSON implementation in SuperColliderJS (the bridge class) has this problem.
thanks for the report.
JSON should def be in core. super popular format in this decade.
the bug is because of .reject(_.isControl) in https://github.com/crucialfelix/API/blob/master/JSON.sc#L14. \n and \t are control characters