AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

JsonExtensions..::..JsonPrettify Method (TextReader, TextWriter, Formatting)

Formats JSON from a TextReader and writes the result to a TextWriter. The caller is responsible for disposing the reader and writer.

Namespace:  AdvantageCMS.Core.Common.Extension
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static TextWriter JsonPrettify(
	TextReader textReader,
	TextWriter textWriter,
	Formatting formatting
)

Parameters

textReader
Type: TextReader
The text reader containing the raw JSON.
textWriter
Type: TextWriter
The text writer to receive the formatted output.
formatting
Type: Formatting
The formatting style to apply. Defaults to Indented()()()().

Return Value

The TextWriter containing the formatted JSON.