将现有JsonElement格式格式化为格式化 JSON 字符串的 API 在哪里。该ToString()API不提供任何格式选项。
JsonElement
ToString()
重新使用 Newtonsoft 很烦人
Newtonsoft.Json.Linq.JValue .Parse(myJsonElement.GetRawText()) .ToString(Newtonsoft.Json.Formatting.Indented)
.net-core system.text.json
.net-core ×1
system.text.json ×1