我需要一个从 JsonDocument 获取 JSON 字符串的示例。我可以获取属性RootElement.GetProperty("ItemName")然后调用,.GetString()但看不到将根元素作为 JSON 字符串获取的方法?
RootElement.GetProperty("ItemName")
.GetString()
c# .net-core-3.0
.net-core-3.0 ×1
c# ×1