Table of Contents

Interface IModelNodeNameAccessor

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

Resolves the canonical member name that a JSON path token maps to on a model instance.

public interface IModelNodeNameAccessor

Methods

GetNodeName(string, object)

Gets the canonical name of the member that token refers to on container.

string? GetNodeName(string token, object container)

Parameters

token string

The raw token text extracted from the JSON path.

container object

The object instance the token should be resolved against.

Returns

string

The canonical member name, or null if it cannot be resolved.