IJSONWritable WriteAsJSON Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Writes entitie's data/state as JSON string

Namespace: NFX.Serialization.JSON
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

void WriteAsJSON(
	TextWriter wri,
	int nestingLevel,
	JSONWritingOptions options = null
)

Parameters

wri
Type: OnlineSystem.IO TextWriter
TextWriter to write JSON content into
nestingLevel
Type: OnlineSystem Int32
A level of nesting that this instance is at, relative to the graph root. Implementations may elect to use this parameter to control indenting or ignore it
options (Optional)
Type: NFX.Serialization.JSON JSONWritingOptions
Writing options, such as indenting. Implementations may elect to use this parameter to control text output or ignore it
See Also