JsonFile.Open Method

Definition

Namespace: Extreme.Data.Json
Assembly: Extreme.Data.Json (in Extreme.Data.Json.dll) Version: 3.1.1

Overload List

Open(JsonReader, JsonOptions) Opens a JSON stream from an existing JsonReader.
Open(Stream, JsonOptions) Opens a data stream in JSON format for reading.
Open(String, JsonOptions) Opens a data file in JSON format for reading.

JsonFile.Open(JsonReader, JsonOptions)

Opens a JSON stream from an existing JsonReader.
C#
public static JsonStream Open(
	JsonReader reader,
	JsonOptions options = null
)

Parameters

reader  JsonReader
The JsonReader the data will be read from.
options  JsonOptions  (Optional)
A JsonOptions object that specifies the options to use when interpreting the JSON.

Return Value

JsonStream
A JsonStream.

JsonFile.Open(Stream, JsonOptions)

Opens a data stream in JSON format for reading.
C#
public static JsonStream Open(
	Stream stream,
	JsonOptions options = null
)

Parameters

stream  Stream
The stream to read the data from.
options  JsonOptions  (Optional)
A JsonOptions object that specifies the options to use when reading the file.

Return Value

JsonStream
A JsonStream.

JsonFile.Open(String, JsonOptions)

Opens a data file in JSON format for reading.
C#
public static JsonStream Open(
	string path,
	JsonOptions options = null
)

Parameters

path  String
The path to the file.
options  JsonOptions  (Optional)
A JsonOptions object that specifies the options to use when reading the file.

Return Value

JsonStream
A JsonStream.

See Also