Closed xmedeko closed 5 years ago
Thanks! I will look into it.
fixed in v2.2.2
Thanks for a quick fix. 👍
You have left some commented out old code in the Formatter.cs
.
I miss a bit JSON.Beautify(string input, string indent)
but that's not so important. (Maybe the JSON.Beautify
methods are obsolete?).
It's possible to close this issue.
Formatter.PrettyPrint
manipulates the
private static string _indent` variable which is not thread safe. Possible solutions:AppendIndent
.Also,
Formatter.PrettyPrint(string input)
should useJSON.Parameters.FormatterIndentSpaces
and not always three spaces.Also, it would be handy to have
JSON.Beautify(string input, string indent)
for custom indent (e.g. a tab).