using System.Collections.Generic;
using Newtonsoft.Json.Linq;
public List<Var> vars { get; set; }
public string UniqueId { get; set; }
public string Type { get; set; }
public List<VarCol> varCol { get; set; }
public int VarColId { get; set; }
public bool Visible { get; set; }
public float Val { get; set; }
public static void Main()
AllVars all = JToken.Parse(json_string).ToObject<AllVars>();
foreach (Var v in all.vars)
Console.WriteLine("var id = {0}, type = {1}", v.UniqueId, v.Type);
Console.WriteLine(" cols: {0}", v.varCol.Count);
for (int i = 0; i < v.varCol.Count; i++)
Console.WriteLine(" {0}. val = {1}, visible = {2}", i, v.varCol[i].Val, v.varCol[i].Visible);
Console.WriteLine(" {0}. null", i);