using System.Collections.Generic;
using System.Diagnostics;
using System.Collections;
using System.Runtime.Serialization;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public static void Main()
Console.WriteLine(string.Format("Json.NET version: {0}.\n", typeof(JsonSerializer).Assembly.FullName));
static void Test(string json)
var root = JToken.Parse(json);
Console.WriteLine("JSON to query: ");
var myThings = root.SelectTokens("..myThings[*]").ToList();
Console.WriteLine("List of myThings: ");
Console.WriteLine(JsonConvert.SerializeObject(myThings, Formatting.Indented));