using System.Collections.Generic;
using Newtonsoft.Json.Linq;
public static void Main()
var token = JToken.Parse(req);
public static void PrintLeafNames(IEnumerable<JToken> tokens)
foreach (var token in tokens)
if (token.Type == JTokenType.Property)
JProperty prop = (JProperty)token;
if (!prop.Value.HasValues)
Console.WriteLine(prop.Name);
PrintLeafNames(token.Children());