更新时间:2023-01-17 10:34:45
您可以反序列化的JSON成的ExpandoObject :
You can deserialize your JSON into an ExpandoObject:
var converter = new ExpandoObjectConverter();
dynamic obj = JsonConvert.DeserializeObject<ExpandoObject>(json, converter);
可动态添加成员在运行时你的对象,并允许您遍历它们的as在这个答案描述。
这样,你可以遍历 obj.message_tags
来获取个人信息,并分别获得他们的所有细节。
That way you can iterate over obj.message_tags
to get the individual messages, and obtain all their details respectively.