Quantcast
Channel: Filter JSON by key name using LINQ - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Brian Rogers for Filter JSON by key name using LINQ

Sure, you can do this with Json.Net's LINQ-to-JSON API: var items = JObject.Parse(json)["items"] .Children<JProperty>() .Where(jp => jp.Name.StartsWith("item")) .Select(jp =>...

View Article



Filter JSON by key name using LINQ

Given the following JSON:{"items": {"primary": "structured","item0": {"keyA1": "value1","keyA2": "value2","keyA3": "value3" },"item1": {"keyB1": "value1","keyB2": "value2","keyB3": "value3" },"item2":...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images