Class JsonPathWalker
Walks a JSON path string one token at a time, splitting on property and array-accessor syntax.
public class JsonPathWalker
- Inheritance
-
JsonPathWalker
- Inherited Members
Constructors
JsonPathWalker(string)
Walks a JSON path string one token at a time, splitting on property and array-accessor syntax.
public JsonPathWalker(string path)
Parameters
pathstringThe JSON path to walk.
Methods
MoveNext(out JsonPathToken)
Advances to and returns the next token in the path, consuming it.
public bool MoveNext(out JsonPathToken token)
Parameters
tokenJsonPathTokenWhen this method returns true, the next token in the path.
Returns
Exceptions
- InvalidOperationException
The matched token does not correspond to a known token type.