Members
Name | Description | |
---|---|---|
CurrentTokenType | Obtains type of current token. | |
FindProperties | Reads current object until one of property names matches. Case is ignored. Return value is an index of property name that matched, otherwise -1. | |
FindProperty | Reads current object until property name matches or object ends. Case is ignored. | |
IsBoolean | Indicates true if current token is a property value or array value of boolean type. | |
IsEndOfArray | Indicates true if current token is ']'. | |
IsEndOfObject | Indicates true if current token is '}'. | |
IsNull | Indicates true if current token is a property value or array value and equals to null. | |
IsNumber | Indicates true if current token is a property value or array value of numeric type. | |
IsStartOfArray | Indicates true if current token is '['. | |
IsStartOfObject | Indicates true if current token is '{'. | |
IsString | Indicates true if current token is a property value or array value of type string. | |
ParseJSONString | Parses JSON string into memory. Returns either IJSONObject or IJSONArray in a 'root' parameter. Doesn't change state of existing IJSONReader2 instance. | |
Read | Reads next JSON token. | |
ReadFrom | Specifies input stream. | |
ReadFromString | Specifies input as string. | |
ReadPropertyName | Obtains property name. Advances to the next token. | |
ReadValue | Obtains array or property value as Variant. Advances to the next token. | |
ReadValueAsBoolean | Obtains array or property value as boolean. Advances to the next token. If property value cannot be coerced to boolean, returns E_FAIL. | |
ReadValueAsDate | Obtains property or array value as date. Advances to the next token. If property value cannot be coerced to datetime, returns E_FAIL. | |
ReadValueAsDouble | Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to double, returns E_FAIL. | |
ReadValueAsLong | Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to long, returns E_FAIL. | |
ReadValueAsString | Obtains property or array value as string. Advances to the next token. If property value cannot be coerced to string, returns E_FAIL. | |
ReadValueEx | Obtains array or property value as Variant along with precision if it is a double. Advances to the next token. | |
RemoveAllBookmarks | Removes all bookmarks. | |
RemoveBookmark | Moves the reader back to a token that has a bookmark with the given name. | |
ReturnToBookmark | Moves the reader back to a token that has a bookmark with the given name. | |
SetBookmark | Creates a bookmark on the current token and assigns it a name. Only works if you use ReadFromString(), otherwise returns E_FAIL. | |
SkipUntilArrayEnds | Skips the rest of the current object, including closing bracket. | |
SkipUntilObjectEnds | Skips the rest of the current object, including closing bracket. | |
Stream | Obtains underlying stream. |
IJSONReader2.ParseJSONString Method
Parses JSON string into memory. Returns either IJSONObject or IJSONArray in a 'root' parameter. Doesn't change state of existing IJSONReader2 instance.
Public Function ParseJSONString ( _
ByVal json As String _
) As Object
public object ParseJSONString (
string json
);
IJSONReader2.ReadValueEx Method
Obtains array or property value as Variant along with precision if it is a double. Advances to the next token.
Public Sub ReadValueEx ( _
ByRef pVal As Object, _
ByRef precision As Integer _
)
public void ReadValueEx (
ref object pVal,
ref int precision
);
IJSONReader2.RemoveAllBookmarks Method
Removes all bookmarks.
Public Sub RemoveAllBookmarks ( _
)
public void RemoveAllBookmarks (
);
IJSONReader2.RemoveBookmark Method
Moves the reader back to a token that has a bookmark with the given name.
Public Sub RemoveBookmark ( _
ByVal Name As String _
)
public void RemoveBookmark (
string Name
);
IJSONReader2.ReturnToBookmark Method
Moves the reader back to a token that has a bookmark with the given name.
Public Sub ReturnToBookmark ( _
ByVal Name As String _
)
public void ReturnToBookmark (
string Name
);
IJSONReader2.SetBookmark Method
Creates a bookmark on the current token and assigns it a name. Only works if you use ReadFromString(), otherwise returns E_FAIL.
Public Sub SetBookmark ( _
ByVal Name As String _
)
public void SetBookmark (
string Name
);
Inherited Interfaces
Interfaces | Description |
---|---|
IJSONReader | Provides access to Sequential JSON Reader. |
Classes that implement IJSONReader2
Classes | Description |
---|---|
JSONReader | A sequential JSON Reader. |