JObject jsonObject=JObject.Parse(theJsonString);IEnumerable<JToken> jTokens = jsonObject.Descendants().Where(p => p.Count() == 0);Dictionary<string, string> results = jTokens.Aggregate(new Dictionary<string, string>(), (properties, jToken) => { properties.Add(jToken.Path, jToken.ToString()); return properties; });我有将嵌套的json结构展平为字典对象的相同要求。在这里找到解决方案。



