microsoft-visualbasic-runtime/Serialization/JSON/Formatter
xieguigang 21312812be update file headers 2018-09-08 01:26:45 +08:00
..
Strategies update file headers 2018-09-08 01:26:45 +08:00
FormatterScopeState.vb update file headers 2018-09-08 01:26:45 +08:00
ICharacterStrategy.vb update file headers 2018-09-08 01:26:45 +08:00
JsonFormatterInternal.vb update file headers 2018-09-08 01:26:45 +08:00
JsonFormatterStrategyContext.vb update file headers 2018-09-08 01:26:45 +08:00
license.txt add source files 2018-08-02 20:14:48 +08:00
readme.md add source files 2018-08-02 20:14:48 +08:00

readme.md

JsonFormatterPlus

This library provides some simple JSON formatting / pretty printing functionality for .NET. It was originally based on Mark Rogers' JsonPrettyPrinterPlus, but has evolved from there.

Installation

PM> Install-Package JsonFormatterPlus

Example

Pretty-printing a JSON string:

Dim formattedJson As String = JsonFormatter.Format(unformattedJson)

Minifying a JSON string:

Dim minifiedJson As String = JsonFormatter.Minify(json)

(I told you it was simple!)

What sets this apart from JsonPrettyPrinterPlus?

JsonPrettyPrinterPlus works very well. However, I wanted to make the project suitable for .NET 2.0, 3.0, and the various client profiles. This meant that the extension methods and the dependency on System.Web.Extensions had to go! A few extra 'quality of life' changes were also made, such as providing JSON minification, etc.

License

JsonFormatterPlus is distributed under the MIT license.