Tuesday, February 12th, 2008
LINQ to JSON
James Newton-King has posted a new bit of code called LINQ to JSON which is a .NET LINQ style API over JSON.
For example, here is how you could get out categories and how often they are used:
-
-
var categories =
-
from c in rss.PropertyValue<jobject>("channel")
-
.PropertyValue<jarray>("item")
-
.Children<jobject>()
-
.PropertyValues<jarray>("category")
-
.Children<string>()
-
group c by c into g
-
orderby g.Count() descending
-
select new { Category = g.Key, Count = g.Count() };
-
There is also a project, JSLINQ which is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use JSLINQ.












Just to be complete: there’s also PHPLinq on http://codeplex.com/PHPLinq .
One word, EXCELLENT!
Jaql (http://www.jaql.org/) looks like another one.
how about dynamic linq, I think that’s more useful than normal linq
Very cool…. nice to see LINQ crossing the Microsoft chasm.
Interesting Article, thanks Armenian Genocide , great information and research.
Why not both? Becausegucci handbags the industry has evolved–for the worse.I grew up listening to gucci walletsa balance of rap music. It was easy to admire replica gucci handbagsthe “street knowledge” of NWA, alongside the bass-shaking of 2gucci trolleys Live Crew and edutainment of KRS-One. Sometimescheap wedding dresses you could find it all in one effort.