// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Collections.Generic; using System.IO; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace E { public class Program { public static void Main(string[] args) { JArray all = (JArray)JsonConvert.DeserializeObject(File.ReadAllText(@"\work\e.json")); foreach(JObject one in all) { Console.WriteLine("**** start object ****"); Console.WriteLine("ClassName = {0}", one.Value("ClassName")); Console.WriteLine("mDecalSize = {0}", one.Value("mDecalSize")); Console.WriteLine("mPingColor = {0}", one.Value("mPingColor")); } } } }