private static JsonSerializerSettings _jsonSettings;
/// <summary>
/// 将指定的对象序列化成 JSON 数据。
/// </summary>
/// <param name="obj">要序列化的对象。</param>
/// <returns></returns>
public string ToJson(object obj)
{
if (null == obj)
return null;
return JsonConvert.SerializeObject(obj, Formatting.None, _jsonSettings);
}
string strjson = ToJson(Result);