WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

StringExtensions..::..AsJsonEnumerable<(Of <(<'T>)>)> Method

will yield-return a large string of JSON a will continue reading if skipping bad entries

Namespace:  System
Assembly:  Walter (in Walter.dll)

Syntax


public static IEnumerable<T> AsJsonEnumerable<T>(
	string json,
	JsonSerializerSettings settings,
	CancellationToken cancellationToken
)

Type Parameters

T
The type to extract from the json

Parameters

json
Type: String
The json to parse
settings
Type: JsonSerializerSettings
the settings to use
cancellationToken
Type: CancellationToken
the cancellation token that can be used to brake the reading

Return Value

Remarks


The method allows you to read a text file frame by frame saving memory with larger datasets