jLinq – JQuery LINQ to JSON
The other day, I was writing some code for having my entity objects transformed to XML or JSON as simple as ToJSON and ToXML, and it got me wondering, what if I could have something like this on client-side?
Did some research (google.com?q=jquery+linq) and WOW, JQuery has a plugin that allows me to perform LINQ queries on my JSON data?? Jackpot!
Let me show you some code so you can reset your mindset:
var results = jLinq.from(data.users)<br /> .startsWith("first", "a")<br /> .orEndsWith("y")<br /> .orderBy("admin", "age")<br /> .select();<br />
How cool is this? Are you thinking about the millions of applications for this? The millions of possibilities and richer web applications we can build with this? So am I!
Go to this page and download it right away, because this has some really untapped potential, congrats to Hugoware for this great achievement!
See you soon, enjoy it.