<PackageReference Include="NJsonSchema" Version="2.16.5975.38441" />

JsonPathUtilities

public static class JsonPathUtilities
Utilities to work with JSON paths.
public static string GetJsonPath(object root, object objectToSearch, ISchemaDefinitionAppender schemaDefinitionAppender = null)

Gets the JSON path of the given object.

public static JsonSchema4 GetObjectFromJsonPath(object root, string path)

Gets the object from the given JSON path.

public static string GetPropertyName(PropertyInfo property)

Gets the name of the property for JSON serialization.