hugoware/jlinq-beta — Issue #7: Allow jqlin to query JSON objects directly instead of arrays of json objects
Author: 133794m3r
Created: 2011-12-31 22:28:22+00:00
State: open

As stated jLINQ should be able to just query a JSON object rather than an array of objects. I was originally going to use jlinq to query my locally cached JSON objects which is just a single layer deep. Inside of the json object is just a bunch of arrays. I'd like it if jlinq would be able to just query that, instead of it only working with arrays of objects which is to me pointlessly complex, and I have no idea why it wouldn't work in a simpler form. It shouldn't be that hard to see which it is since it already is throwing the errors at me.

If it cannot get this feature then I'll likely have to use the less fun to use SEARCH.JS since I'm not about to needlessly make my queries anymore complex.

An example of a type of json thing I'd be using.

data = {name:["John","Jill","Jamie"],age:[30,25,30]}

how i'd like to be able to use it.
matches = find.from(data).equals("age",30).select();

but it doesn't do that. It is because of this that I find it needlessly complex and it doesn't help me with any of my previous issues. This library isn't perfect but it's a lot bettter than me writing my own/having to write out json to do any queries.