JsonFile.Open Method

Definition

Namespace: Numerics.NET.Data.Json
Assembly: Numerics.NET.Data.Json (in Numerics.NET.Data.Json.dll) Version: 4.0.0

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.

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.

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.

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