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
Stream
IStream Stream { get; }
Property Value
Methods
FindProperties(IStringArray)
int FindProperties(IStringArray propnames)
Parameters
propnamesIStringArray
Returns
FindProperty(string)
bool FindProperty(string propname)
Parameters
propnamestring
Returns
IsBoolean()
bool IsBoolean()
Returns
IsEndOfArray()
bool IsEndOfArray()
Returns
IsEndOfObject()
bool IsEndOfObject()
Returns
IsNull()
bool IsNull()
Returns
IsNumber()
bool IsNumber()
Returns
IsStartOfArray()
bool IsStartOfArray()
Returns
IsStartOfObject()
bool IsStartOfObject()
Returns
IsString()
bool IsString()
Returns
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
jsonstring
Returns
Read()
void Read()
ReadFrom(IStream)
void ReadFrom(IStream inputStream)
Parameters
inputStreamIStream
ReadFromString(string)
void ReadFromString(string Text)
Parameters
Textstring
ReadPropertyName()
string ReadPropertyName()
Returns
ReadValue()
object ReadValue()
Returns
ReadValueAsBoolean()
bool ReadValueAsBoolean()
Returns
ReadValueAsDate()
DateTime ReadValueAsDate()
Returns
ReadValueAsDouble()
double ReadValueAsDouble()
Returns
ReadValueAsLong()
int ReadValueAsLong()
Returns
ReadValueAsString()
string ReadValueAsString()
Returns
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
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
Namestring
ReturnToBookmark(string)
Moves the reader back to a token that has a bookmark with the given name.
void ReturnToBookmark(string Name)
Parameters
Namestring
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
Namestring
SkipUntilArrayEnds()
void SkipUntilArrayEnds()
SkipUntilObjectEnds()
void SkipUntilObjectEnds()