使用System.Text.Json
将JsonString转成Json对象:
点击查看代码
using System.Text.Json;
JsonDocument jsonDocument = JsonDocument.Parse(strings[0]);
JsonElement root = jsonDocument.RootElement;
string value = root.GetProperty("value").GetString();
使用System.Text.Json
将JsonString转成Json对象:
using System.Text.Json;
JsonDocument jsonDocument = JsonDocument.Parse(strings[0]);
JsonElement root = jsonDocument.RootElement;
string value = root.GetProperty("value").GetString();