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
Stream
Obtains underlying stream.
IStream Stream { get; }
Property Value
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
propnamesIStringArray
Returns
FindProperty(string)
Reads current object until property name matches or object ends. Case is ignored.
bool FindProperty(string propname)
Parameters
propnamestring
Returns
IsBoolean()
Indicates true if current token is a property value or array value of boolean type.
bool IsBoolean()
Returns
IsEndOfArray()
Indicates true if current token is ']'.
bool IsEndOfArray()
Returns
IsEndOfObject()
Indicates true if current token is '}'.
bool IsEndOfObject()
Returns
IsNull()
Indicates true if current token is a property value or array value and equals to null.
bool IsNull()
Returns
IsNumber()
Indicates true if current token is a property value or array value of numeric type.
bool IsNumber()
Returns
IsStartOfArray()
Indicates true if current token is '['.
bool IsStartOfArray()
Returns
IsStartOfObject()
Indicates true if current token is '{'.
bool IsStartOfObject()
Returns
IsString()
Indicates true if current token is a property value or array value of type string.
bool IsString()
Returns
Read()
Reads next JSON token.
void Read()
ReadFrom(IStream)
Specifies input stream.
void ReadFrom(IStream inputStream)
Parameters
inputStreamIStream
ReadFromString(string)
Specifies input as string.
void ReadFromString(string Text)
Parameters
Textstring
ReadPropertyName()
Obtains property name. Advances to the next token.
string ReadPropertyName()
Returns
ReadValue()
Obtains array or property value as Variant. Advances to the next token.
object ReadValue()
Returns
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
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
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
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
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
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()