CrystalJsonStreamReader
Namespace: SnowBank.Data.Json · class
Implements: IDisposable
Type that can read JSON fragments from a stream
Constructors
CrystalJsonStreamReader
CrystalJsonStreamReader(Stream input, CrystalJsonSettings settings, bool ownSource = false)
Reads JSON fragments from a Stream, using UTF-8 as the text encoding
CrystalJsonStreamReader(TextReader input, CrystalJsonSettings settings, bool ownSource = false)
Reads JSON fragments from a TextReader
Methods
Create
static CrystalJsonStreamReader Create(Stream stream, CrystalJsonSettings settings = null, bool ownStream = false)
Dispose
void Dispose()
Open
static CrystalJsonStreamReader Open(string path, CrystalJsonSettings settings = null)
ReadNextFragment
JsonValue ReadNextFragment()
Read the next JSON fragment from this stream
Returns: Next fragment, or null if we reached the end of the stream