Table of Contents

Interface IModelPropertyAccessorProvider

Namespace
MRX.Json.Reflection.Abstractions
Assembly
MRX.Json.Reflection.dll

Selects the IModelNodeAccessor capable of resolving a given JSON path token.

public interface IModelPropertyAccessorProvider

Methods

GetAccessor(JsonPathTokenType, string, object)

Finds an accessor able to resolve token against container.

IModelNodeAccessor? GetAccessor(JsonPathTokenType tokenType, string token, object container)

Parameters

tokenType JsonPathTokenType

The kind of path token being resolved (property, array index, etc.).

token string

The raw token text extracted from the JSON path.

container object

The object instance the token should be resolved against.

Returns

IModelNodeAccessor

The matching IModelNodeAccessor, or null if none can handle it.