相关疑难解决方法(0)

如何将 System.Text.JsonElement 漂亮地打印(格式化)到字符串

将现有JsonElement格式格式化为格式化 JSON 字符串的 API 在哪里。该ToString()API不提供任何格式选项。

重新使用 Newtonsoft 很烦人

Newtonsoft.Json.Linq.JValue
  .Parse(myJsonElement.GetRawText())
  .ToString(Newtonsoft.Json.Formatting.Indented)
Run Code Online (Sandbox Code Playgroud)

.net-core system.text.json

5
推荐指数
1
解决办法
540
查看次数

标签 统计

.net-core ×1

system.text.json ×1