コード例 #1
0
 /// <summary>
 /// Gets the <see cref="JsonElement"/> that represents a property that matches the specified path.
 /// </summary>
 public static JsonElement GetPropertyByPath(this JsonElement element, string propertyPath) =>
 element.GetPropertyByPathOrNull(propertyPath) ??
 throw new KeyNotFoundException($"Cannot find property matching path '{propertyPath}'.");