参数 strJson 是无换行无缩进的字符串,返回有换行有缩进的字符串。
string formattedJson = JsonConvert.SerializeObject(JsonConvert.DeserializeObject(strJson), Formatting.Indented);
参数 strJson 是无换行无缩进的字符串,返回有换行有缩进的字符串。
string formattedJson = JsonConvert.SerializeObject(JsonConvert.DeserializeObject(strJson), Formatting.Indented);