using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace CoreEntity.ESEntity { public class EsCommon { /// /// JSON转对象 /// /// /// /// public static T FromJSON(string input) { try { return JsonConvert.DeserializeObject(input); } catch (Exception ex) { string a = ex.Message; return default(T); } } } public class Total { /// /// /// public int value { get; set; } /// /// /// public string relation { get; set; } } public class Hits { /// /// /// public Total total { get; set; } /// /// /// public string max_score { get; set; } /// /// /// public List> hits { get; set; } } }