using System.Collections.Generic;
public static void Main()
""numberOfExamples"": 188
""numberOfExamples"": 188
""numberOfExamples"": 188
""numberOfExamples"": 188
List<ImageBrainData_Reader> dataRead = JsonConvert.DeserializeObject<List<ImageBrainData_Reader>>(json);
foreach (var item in dataRead)
Console.WriteLine("colorData: " + string.Join(",", item.colorData.Select(i => i.ToString())));
Console.WriteLine("neighbours:");
foreach (var neighbour in item.neighbours)
Console.WriteLine(" direction: " + neighbour.direction);
Console.WriteLine(" neighbour data:");
foreach (var datum in neighbour.neighbourData_Reader)
Console.WriteLine(" colorData: " + string.Join(",", datum.colorData.Select(i => i.ToString())));
Console.WriteLine(" numberOfExamples: " + datum.numberOfExamples);
public partial class ImageBrainData_Reader
public int[] colorData { get; set; }
public List<Neighbour_Reader> neighbours { get; set; }
public partial class Neighbour_Reader
public int direction { get; set; }
public List<NeighbourData_Reader> neighbourData_Reader { get; set; }
public partial class NeighbourData_Reader
public int[] colorData { get; set; }
public int numberOfExamples { get; set; }