public static JsonNode? TryGetPropertyNode()

in src/Azure.Deployments.Extensibility.Core/V2/Json/JsonNodeExtensions.cs [12:25]


        public static JsonNode? TryGetPropertyNode(this JsonNode? node, JsonPointerProxy propertyPath) =>
            TryGetPropertyNode(node, propertyPath.ToJsonPointer());

        public static JsonNode? TryGetPropertyNode(this JsonNode? node, JsonPointer propertyPath)
        {
            ArgumentNullException.ThrowIfNull(node, nameof(node));

            if (propertyPath.TryEvaluate(node, out var propertyNode))
            {
                return propertyNode;
            }

            return default;
        }