Total JSON is fast, light-weight JSON package. Completely stand-alone, no depencies, nothing but C#, works on any platform.
Does all the basic things. Create and modify JSON, parse strings to JSON and turn JSON objects to strings (compact or pretty), serialize objects to JSON and JSON back to objects.
Safe:
And lot more:
For easier problem tracking, you can add Debug ID strings to JSON objects. That ID is printed out in any exceptions that may happen during parsing or handling JSON objects.
This way you know which JSON object of all possible objects is causing the exception, even when there isn't any kind of stacktrace available.
When turning JSON object to string using CreateString() method, it is possible to customize output string using CreateStringSettings.
For example:
string customOutput = json.CreateString( new CreateStringSettings() {
HumanReadable = true,
NewLine = CreateStringSettings.NewLineTypes.LF
});
You can set JSON or JArray objects protected using
json.SetProtected();
This will set this JSON object and all other objects it contains to write protected. Nothing can be added, moved or changed. This is useful to make sure no accidental changes are made to objects that should be only for reading.
Download from [url coming here]