parser library

Properties

log ParseLog
Use this if you need to debug what the path parser is doing
getter/setter pair

Functions

expectChar(String jsonPath, int index, String expected) → void
Throws a FormatException if the character at the specified index in the
isDigit(String char) bool
Returns true if the character is a digit.
isUnquotedFieldChar(String char) bool
Returns true if the character is a valid unquoted field character.
parseBracketNotation(String jsonPath, int index, JsonValue value) JsonValue
Parses a JSON path expression in bracket notation and returns the corresponding value.
parseDotNotation(String jsonPath, int index, JsonValue value) JsonValue
Parses a JSON path expression in dot notation and returns the corresponding
parseExpression(String jsonPath, int index, JsonValue value) JsonValue
Parses a JSON path expression and returns the corresponding value from the JSON.
parseFieldName(String jsonPath, int index) String
Parses a field name from a JSON path expression.
parseIndex(String jsonPath, int index) int
Parses an index from a JSON path expression.
parseJsonPath(String jsonPath, JsonValue rootValue) JsonValue
Parses a JSON path expression and returns the corresponding value from the JSON.
parseQuotedFieldName(String jsonPath, int index) String
Parses a quoted field name from a JSON path expression.
parseRecursiveDescent(String jsonPath, int index, JsonValue value) JsonValue
Parses a JSON path expression with recursive descent and returns the corresponding value.
parseWildcard(String jsonPath, int index, JsonValue value) JsonValue
Parses a JSON path expression with a wildcard and returns the corresponding

Typedefs

ParseLog = void Function(String step, String currentPath, Object value)
A function that logs a message with the current step, JSON path, and value.