Interface IJSONReader

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to Sequential JSON Reader.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("48105A80-E0DC-4D69-BB61-3DF74CAFA52C")]
public interface IJSONReader

Properties

CurrentTokenType

Obtains type of current token.

JSONTokenType CurrentTokenType { get; }

Property Value

JSONTokenType

Stream

Obtains underlying stream.

IStream Stream { get; }

Property Value

IStream

Methods

FindProperties(IStringArray)

Reads current object until one of property names matches. Case is ignored. Return value is an index of property name that matched, otherwise -1.

int FindProperties(IStringArray propnames)

Parameters

propnames IStringArray

Returns

int

FindProperty(string)

Reads current object until property name matches or object ends. Case is ignored.

bool FindProperty(string propname)

Parameters

propname string

Returns

bool

IsBoolean()

Indicates true if current token is a property value or array value of boolean type.

bool IsBoolean()

Returns

bool

IsEndOfArray()

Indicates true if current token is ']'.

bool IsEndOfArray()

Returns

bool

IsEndOfObject()

Indicates true if current token is '}'.

bool IsEndOfObject()

Returns

bool

IsNull()

Indicates true if current token is a property value or array value and equals to null.

bool IsNull()

Returns

bool

IsNumber()

Indicates true if current token is a property value or array value of numeric type.

bool IsNumber()

Returns

bool

IsStartOfArray()

Indicates true if current token is '['.

bool IsStartOfArray()

Returns

bool

IsStartOfObject()

Indicates true if current token is '{'.

bool IsStartOfObject()

Returns

bool

IsString()

Indicates true if current token is a property value or array value of type string.

bool IsString()

Returns

bool

Read()

Reads next JSON token.

void Read()

ReadFrom(IStream)

Specifies input stream.

void ReadFrom(IStream inputStream)

Parameters

inputStream IStream

ReadFromString(string)

Specifies input as string.

void ReadFromString(string Text)

Parameters

Text string

ReadPropertyName()

Obtains property name. Advances to the next token.

string ReadPropertyName()

Returns

string

ReadValue()

Obtains array or property value as Variant. Advances to the next token.

object ReadValue()

Returns

object

ReadValueAsBoolean()

Obtains array or property value as boolean. Advances to the next token. If property value cannot be coerced to boolean, returns E_FAIL.

bool ReadValueAsBoolean()

Returns

bool

ReadValueAsDate()

Obtains property or array value as date. Advances to the next token. If property value cannot be coerced to datetime, returns E_FAIL.

DateTime ReadValueAsDate()

Returns

DateTime

ReadValueAsDouble()

Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to double, returns E_FAIL.

double ReadValueAsDouble()

Returns

double

ReadValueAsLong()

Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to long, returns E_FAIL.

int ReadValueAsLong()

Returns

int

ReadValueAsString()

Obtains property or array value as string. Advances to the next token. If property value cannot be coerced to string, returns E_FAIL.

string ReadValueAsString()

Returns

string

SkipUntilArrayEnds()

Skips the rest of the current object, including closing bracket.

void SkipUntilArrayEnds()

SkipUntilObjectEnds()

Skips the rest of the current object, including closing bracket.

void SkipUntilObjectEnds()