📅  最后修改于: 2022-03-11 14:49:12.444000             🧑  作者: Mango
using Newtonsoft.Json;
private static string FormatPrettyJson(object myobject)
{
string json = JsonConvert.SerializeObject(object, Formatting.Indented);
return json;
}