JsonNodeSerialise(JsonFormat) Method

Serialise into the specified layout. If Indent_Spaces is selected, a default of four spaces per indent level will be used.

Definition

Namespace: MichaelBrooks.UK.Json
Assembly: JsonDOM (in JsonDOM.dll) Version: 1.0.7
C#
public string Serialise(
	JsonFormat format
)

Parameters

format  JsonFormat

Return Value

String
A JSON serialisation of the DOM with the current JsonNode treated as the root.

Remarks

If you wish to serialise to a multiline format with control over the size of the indent employed, use the Serialise(UInt32) overload.
Online page.

See Also