Interface IJSONReader2

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll
[Guid("2C573605-C449-47E3-A483-F441192840FA")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IJSONReader2 : IJSONReader

Properties

CurrentTokenType

JSONTokenType CurrentTokenType { get; }

Property Value

JSONTokenType

Stream

IStream Stream { get; }

Property Value

IStream

Methods

FindProperties(IStringArray)

int FindProperties(IStringArray propnames)

Parameters

propnames IStringArray

Returns

int

FindProperty(string)

bool FindProperty(string propname)

Parameters

propname string

Returns

bool

IsBoolean()

bool IsBoolean()

Returns

bool

IsEndOfArray()

bool IsEndOfArray()

Returns

bool

IsEndOfObject()

bool IsEndOfObject()

Returns

bool

IsNull()

bool IsNull()

Returns

bool

IsNumber()

bool IsNumber()

Returns

bool

IsStartOfArray()

bool IsStartOfArray()

Returns

bool

IsStartOfObject()

bool IsStartOfObject()

Returns

bool

IsString()

bool IsString()

Returns

bool

ParseJSONString(string)

Parses JSON string into memory. Returns either IJSONObject or IJSONArray in a 'root' parameter. Doesn't change state of existing IJSONReader2 instance.

object ParseJSONString(string json)

Parameters

json string

Returns

object

Read()

void Read()

ReadFrom(IStream)

void ReadFrom(IStream inputStream)

Parameters

inputStream IStream

ReadFromString(string)

void ReadFromString(string Text)

Parameters

Text string

ReadPropertyName()

string ReadPropertyName()

Returns

string

ReadValue()

object ReadValue()

Returns

object

ReadValueAsBoolean()

bool ReadValueAsBoolean()

Returns

bool

ReadValueAsDate()

DateTime ReadValueAsDate()

Returns

DateTime

ReadValueAsDouble()

double ReadValueAsDouble()

Returns

double

ReadValueAsLong()

int ReadValueAsLong()

Returns

int

ReadValueAsString()

string ReadValueAsString()

Returns

string

ReadValueEx(out object, out int)

Obtains array or property value as Variant along with precision if it is a double. Advances to the next token.

void ReadValueEx(out object pVal, out int precision)

Parameters

pVal object
precision int

RemoveAllBookmarks()

Removes all bookmarks.

void RemoveAllBookmarks()

RemoveBookmark(string)

Moves the reader back to a token that has a bookmark with the given name.

void RemoveBookmark(string Name)

Parameters

Name string

ReturnToBookmark(string)

Moves the reader back to a token that has a bookmark with the given name.

void ReturnToBookmark(string Name)

Parameters

Name string

SetBookmark(string)

Creates a bookmark on the current token and assigns it a name. Only works if you use ReadFromString(), otherwise returns E_FAIL.

void SetBookmark(string Name)

Parameters

Name string

SkipUntilArrayEnds()

void SkipUntilArrayEnds()

SkipUntilObjectEnds()

void SkipUntilObjectEnds()