Click or drag to resize
Json.NETJsonTextReader Class
 
Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
Inheritance Hierarchy

Namespace: Newtonsoft.Json
Assembly: Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 7.0.0.0 (7.0.1.18215)
Syntax
C#
public class JsonTextReader : JsonReader, 
	IJsonLineInfo

The JsonTextReader type exposes the following members.

Constructors
  NameDescription
Public methodJsonTextReader
Initializes a new instance of the JsonReader class with the specified TextReader.
Top
Methods
  NameDescription
Public methodClose
Changes the state to closed.
(Overrides JsonReaderClose.)
Protected methodDispose
Releases unmanaged and - optionally - managed resources
(Inherited from JsonReader.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasLineInfo
Gets a value indicating whether the class can return line information.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Reads the next JSON token from the stream.
(Overrides JsonReaderRead.)
Public methodReadAsBytes
Reads the next JSON token from the stream as a Byte[].
(Overrides JsonReaderReadAsBytes.)
Public methodReadAsDateTime (Overrides JsonReaderReadAsDateTime.)
Public methodReadAsDateTimeOffset (Overrides JsonReaderReadAsDateTimeOffset.)
Public methodReadAsDecimal (Overrides JsonReaderReadAsDecimal.)
Public methodReadAsInt32 (Overrides JsonReaderReadAsInt32.)
Public methodReadAsString
Reads the next JSON token from the stream as a String.
(Overrides JsonReaderReadAsString.)
Protected methodSetStateBasedOnCurrent
Sets the state based on current token type.
(Inherited from JsonReader.)
Protected methodSetToken(JsonToken)
Sets the current token.
(Inherited from JsonReader.)
Protected methodSetToken(JsonToken, Object)
Sets the current token and value.
(Inherited from JsonReader.)
Public methodSkip
Skips the children of the current token.
(Inherited from JsonReader.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCloseInput
Gets or sets a value indicating whether the underlying stream or TextReader should be closed when the reader is closed.
(Inherited from JsonReader.)
Public propertyCulture
Gets or sets the culture used when reading JSON. Defaults to InvariantCulture.
(Inherited from JsonReader.)
Protected propertyCurrentState
Gets the current reader state.
(Inherited from JsonReader.)
Public propertyDateFormatString
Get or set how custom date formatted strings are parsed when reading JSON.
(Inherited from JsonReader.)
Public propertyDateParseHandling
Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
(Inherited from JsonReader.)
Public propertyDateTimeZoneHandling
Get or set how DateTime time zones are handling when reading JSON.
(Inherited from JsonReader.)
Public propertyDepth
Gets the depth of the current token in the JSON document.
(Inherited from JsonReader.)
Public propertyFloatParseHandling
Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
(Inherited from JsonReader.)
Public propertyLineNumber
Gets the current line number.
Public propertyLinePosition
Gets the current line position.
Public propertyMaxDepth
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException.
(Inherited from JsonReader.)
Public propertyPath
Gets the path of the current JSON token.
(Inherited from JsonReader.)
Public propertyQuoteChar
Gets the quotation mark character used to enclose the value of a string.
(Inherited from JsonReader.)
Public propertySupportMultipleContent
Gets or sets a value indicating whether multiple pieces of JSON content can be read from a continuous stream without erroring.
(Inherited from JsonReader.)
Public propertyTokenType
Gets the type of the current JSON token.
(Inherited from JsonReader.)
Public propertyValue
Gets the text value of the current JSON token.
(Inherited from JsonReader.)
Public propertyValueType
Gets The Common Language Runtime (CLR) type for the current JSON token.
(Inherited from JsonReader.)
Top
See Also