TotalJSON


Introduction

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:


Extra features

Debugging in production

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.

Customized string output

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
});

Protecting JSON objects

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.


Full API docs

Full API documentation


Where to get

Download from [url coming here]