Closed BryanWilhite closed 4 years ago
instead of ToTopLevel...
this looks promising:
/// <summary>
/// Displays the top properties of <see cref="JObject"/>.
/// </summary>
/// <param name="jO">The <see cref="JObject"/>.</param>
/// <returns></returns>
public static string DisplayTopProperties(this JObject jObject) =>
jObject?
.Properties()
.Select(p => p.Name)
.Aggregate((a, name) => string.Concat(a, name, Environment.NewLine));
based on this: