JsonObjectWriteTo(Stream, Encoding, String) Method

Writes this JsonObject instance into a Stream using the specified encoding.


Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public void WriteTo(
	Stream stream,
	Encoding? encoding = null,
	string? indent = null


stream  Stream
The Stream to write the JsonObject into.
encoding  Encoding  (Optional)
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  String  (Optional)
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