Class JSONReaderClass
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
[Guid("B4578901-05DE-4BDA-AAEB-849EC52102B1")]
[ClassInterface(ClassInterfaceType.None)]
public class JSONReaderClass : JSONReader, IJSONReader2, IJSONReader, ISupportErrorInfo
- Inheritance
-
JSONReaderClass
- Implements
- Inherited Members
Constructors
JSONReaderClass()
public JSONReaderClass()
Explicit Interface Implementations
CurrentTokenType
Obtains type of current token.
virtual JSONTokenType CurrentTokenType { get; }
Returns
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.
virtual int FindProperties(IStringArray propnames)
Parameters
propnamesIStringArray
Returns
FindProperty(string)
Reads current object until property name matches or object ends. Case is ignored.
virtual bool FindProperty(string propname)
Parameters
propnamestring
Returns
IJSONReader2_CurrentTokenType
virtual JSONTokenType IJSONReader2_CurrentTokenType { get; }
Returns
IJSONReader2_FindProperties(IStringArray)
virtual int IJSONReader2_FindProperties(IStringArray propnames)
Parameters
propnamesIStringArray
Returns
IJSONReader2_FindProperty(string)
virtual bool IJSONReader2_FindProperty(string propname)
Parameters
propnamestring
Returns
IJSONReader2_IsBoolean()
virtual bool IJSONReader2_IsBoolean()
Returns
IJSONReader2_IsEndOfArray()
virtual bool IJSONReader2_IsEndOfArray()
Returns
IJSONReader2_IsEndOfObject()
virtual bool IJSONReader2_IsEndOfObject()
Returns
IJSONReader2_IsNull()
virtual bool IJSONReader2_IsNull()
Returns
IJSONReader2_IsNumber()
virtual bool IJSONReader2_IsNumber()
Returns
IJSONReader2_IsStartOfArray()
virtual bool IJSONReader2_IsStartOfArray()
Returns
IJSONReader2_IsStartOfObject()
virtual bool IJSONReader2_IsStartOfObject()
Returns
IJSONReader2_IsString()
virtual bool IJSONReader2_IsString()
Returns
IJSONReader2_Read()
virtual void IJSONReader2_Read()
IJSONReader2_ReadFrom(IStream)
virtual void IJSONReader2_ReadFrom(IStream inputStream)
Parameters
inputStreamIStream
IJSONReader2_ReadFromString(string)
virtual void IJSONReader2_ReadFromString(string Text)
Parameters
Textstring
IJSONReader2_ReadPropertyName()
virtual string IJSONReader2_ReadPropertyName()
Returns
IJSONReader2_ReadValue()
virtual object IJSONReader2_ReadValue()
Returns
IJSONReader2_ReadValueAsBoolean()
virtual bool IJSONReader2_ReadValueAsBoolean()
Returns
IJSONReader2_ReadValueAsDate()
virtual DateTime IJSONReader2_ReadValueAsDate()
Returns
IJSONReader2_ReadValueAsDouble()
virtual double IJSONReader2_ReadValueAsDouble()
Returns
IJSONReader2_ReadValueAsLong()
virtual int IJSONReader2_ReadValueAsLong()
Returns
IJSONReader2_ReadValueAsString()
virtual string IJSONReader2_ReadValueAsString()
Returns
IJSONReader2_SkipUntilArrayEnds()
virtual void IJSONReader2_SkipUntilArrayEnds()
IJSONReader2_SkipUntilObjectEnds()
virtual void IJSONReader2_SkipUntilObjectEnds()
IJSONReader2_Stream
virtual IStream IJSONReader2_Stream { get; }
Returns
InterfaceSupportsErrorInfo(ref Guid)
virtual void InterfaceSupportsErrorInfo(ref Guid riid)
Parameters
riidGuid
IsBoolean()
Indicates true if current token is a property value or array value of boolean type.
virtual bool IsBoolean()
Returns
IsEndOfArray()
Indicates true if current token is ']'.
virtual bool IsEndOfArray()
Returns
IsEndOfObject()
Indicates true if current token is '}'.
virtual bool IsEndOfObject()
Returns
IsNull()
Indicates true if current token is a property value or array value and equals to null.
virtual bool IsNull()
Returns
IsNumber()
Indicates true if current token is a property value or array value of numeric type.
virtual bool IsNumber()
Returns
IsStartOfArray()
Indicates true if current token is '['.
virtual bool IsStartOfArray()
Returns
IsStartOfObject()
Indicates true if current token is '{'.
virtual bool IsStartOfObject()
Returns
IsString()
Indicates true if current token is a property value or array value of type string.
virtual 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.
virtual object ParseJSONString(string json)
Parameters
jsonstring
Returns
Read()
Reads next JSON token.
virtual void Read()
ReadFrom(IStream)
Specifies input stream.
virtual void ReadFrom(IStream inputStream)
Parameters
inputStreamIStream
ReadFromString(string)
Specifies input as string.
virtual void ReadFromString(string Text)
Parameters
Textstring
ReadPropertyName()
Obtains property name. Advances to the next token.
virtual string ReadPropertyName()
Returns
ReadValue()
Obtains array or property value as Variant. Advances to the next token.
virtual 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.
virtual 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.
virtual 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.
virtual 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.
virtual 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.
virtual 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.
virtual void ReadValueEx(out object pVal, out int precision)
Parameters
RemoveAllBookmarks()
Removes all bookmarks.
virtual void RemoveAllBookmarks()
RemoveBookmark(string)
Moves the reader back to a token that has a bookmark with the given name.
virtual void RemoveBookmark(string Name)
Parameters
Namestring
ReturnToBookmark(string)
Moves the reader back to a token that has a bookmark with the given name.
virtual 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.
virtual void SetBookmark(string Name)
Parameters
Namestring
SkipUntilArrayEnds()
Skips the rest of the current object, including closing bracket.
virtual void SkipUntilArrayEnds()
SkipUntilObjectEnds()
Skips the rest of the current object, including closing bracket.
virtual void SkipUntilObjectEnds()
Stream
Obtains underlying stream.
virtual IStream Stream { get; }