KGy SOFT

JsonValueWriteTo Method (Stream, Encoding, String)

KGy SOFT JSON Libraries Help
Writes this JsonValue instance into a Stream using the specified encoding.

Namespace:  KGySoft.Json
Assembly:  KGySoft.Json (in KGySoft.Json.dll) Version: 2.0.1
Syntax

public void WriteTo(
	Stream stream,
	Encoding encoding = null,
	string indent = null
)

Parameters

stream
Type: System.IOStream
The Stream to write the JsonValue into.
encoding (Optional)
Type: System.TextEncoding
An Encoding that specifies the encoding of the JSON data in the stream. If , then UTF8 encoding will be used. This parameter is optional.
Default value: .
indent (Optional)
Type: SystemString
Specifies the indentation string to produce a formatted JSON. If or empty, then a minimized JSON is returned. Using non-whitespace characters may produce an invalid JSON. This parameter is optional.
Default value: .
See Also

Reference