Table of Contents

ReadAll Method

Definition

Namespace
Codebelt.Extensions.Newtonsoft.Json
Assemblies
Codebelt.Extensions.Newtonsoft.Json.dll
Source
src/Codebelt.Extensions.Newtonsoft.Json/JData.cs

ReadAll(Stream, Action<StreamReaderOptions>)

Creates a sequence of IEnumerable<T> from the specified json.

public static IEnumerable<JDataResult> ReadAll(Stream json, Action<StreamReaderOptions> setup = null)

Parameters

json Stream

A Stream that represents a JSON data structure.

setup Action<StreamReaderOptions>

The StreamReaderOptions which may be configured.

Returns

IEnumerable<JDataResult>

An IEnumerable<T> sequence from the specified Stream.

ReadAll(string)

Creates a sequence of IEnumerable<T> from the specified json.

public static IEnumerable<JDataResult> ReadAll(string json)

Parameters

json string

A string that represents a JSON data structure.

Returns

IEnumerable<JDataResult>

An IEnumerable<T> sequence from the specified string.

ReadAll(JsonReader)

Creates a sequence of IEnumerable<T> from the specified reader.

public static IEnumerable<JDataResult> ReadAll(JsonReader reader)

Parameters

reader JsonReader

The Newtonsoft.Json.JsonReader to parse and extract an IEnumerable<T> sequence from.

Returns

IEnumerable<JDataResult>

An IEnumerable<T> sequence from the specified Newtonsoft.Json.JsonReader.