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

NJsonSchema.JsonPathUtilities

public static class JsonPathUtilities
Utilities to work with JSON paths.
namespace NJsonSchema { public static class JsonPathUtilities { public static string GetJsonPath(object rootObject, object searchedObject); public static string GetJsonPath(object rootObject, object searchedObject, IContractResolver contractResolver); public static IReadOnlyDictionary<object, string> GetJsonPaths(object rootObject, IEnumerable<object> searchedObjects, IContractResolver contractResolver); } }