Table of Contents

Class JsonPathWalker

Namespace
MRX.Json.Path
Assembly
MRX.Json.dll

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

path string

The 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

token JsonPathToken

When this method returns true, the next token in the path.

Returns

bool

true if a token was found; false if the path is fully consumed.

Exceptions

InvalidOperationException

The matched token does not correspond to a known token type.