using System.Globalization;
using System.Text.RegularExpressions;
using Newtonsoft.Json.Linq;
public static void Main()
StringBuilder sResult = new StringBuilder();
sResult.AppendLine("{\"hits\":{\"total\":4,\"max_score\":0.0,\"hits\":[]},\"aggregations\":{\"2\":{\"doc_count_error_upper_bound\":0,\"sum_other_doc_count\":0,\"buckets\":[{\"student\":\"123\",\"id\":2},{\"student\":\"9200\",\"id\":2}]}}}");
var o = JObject.Parse(sResult.ToString());
Console.WriteLine(o["aggregations"]["2"]["buckets"]);