Method | Description | |
---|---|---|
JSONVisitor ( |
Initializes a new JSONVisitor bound to a Matcher.
|
|
JSONVisitor ( string s ) : System |
Initializes a new JSONVisitor on a string. A Matcher is automatically created.
|
|
Visit ( ) : bool |
Visits any json item: it is either a terminal (VisitTerminalValue), {"an":"object"} (see VisitObjectContent or ["an","array"] (see VisitArrayContent).
|
|
VisitArrayContent ( ) : bool |
Visits a comma seprarated list of json items until a closing ']' is found.
|
|
VisitObjectContent ( ) : bool |
Visits a comma seprarated list of "property" : ... fields until a closing } is found or Matcher.
|
Method | Description | |
---|---|---|
SkipWhiteSpaces ( ) : void |
Skips white spaces: simply calls StringMatcher.MatchWhiteSpaces(int) with 0 minimal count of spaces.
|
|
VisitArrayCell ( int cellNumber ) : bool |
Visits a cell in a Parent array.
|
|
VisitObjectProperty ( int startPropertyIndex, string propertyName, int propertyNumber ) : bool |
Visits a "property" : ... JSON property.
|
|
VisitTerminalValue ( ) : bool |
Visits a terminal value. This method simply calls
|
public JSONVisitor ( |
||
m | The string matcher. | |
return | System |
public JSONVisitor ( string s ) : System | ||
s | string | The string to parse. |
return | System |
protected VisitArrayCell ( int cellNumber ) : bool | ||
cellNumber | int | Zero based cell nummber. |
return | bool |
protected VisitObjectProperty ( int startPropertyIndex, string propertyName, int propertyNumber ) : bool | ||
startPropertyIndex | int |
/// Starting index of the |
propertyName | string | Parsed property name. |
propertyNumber | int | Zero based number of the property in the |
return | bool |