using Newtonsoft.Json;using Newtonsoft.Json.Linq;// JSON字符串string json = "{\"Name\":\"John\", \"Age\":30, \"Address\":{\"Street\":\"123 Main St\", \"City\":\"New York\"}}";// 将JSON字符串解析为dynamic对象dynamic data = JsonConvert.DeserializeObject(json);// 访问对象的属性string name = data.Name;int age = data.Age;string street = data.Address.Street;string city = data.Address.City;