Skip to content
/ jsonquery Public
forked from jcrosby/jsonquery

A JSONQuery implementation in JavaScript

Notifications You must be signed in to change notification settings

zaim/jsonquery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSONQuery provides a comprehensive set of data querying tools including 
filtering, recursive search, sorting, mapping, range selection, and flexible 
expressions with wildcard string comparisons and various operators.

Quick Example:
    var data = {customers:[
      {name:"Susan", purchases:29},
      {name:"Kim", purchases:150}, 
      {name:"Jake", purchases:27}
    ]};

    var results = JSONQuery("$.customers[?purchases > 21 & name='Jake'][\\purchases]",data);

    returns customers sorted by higest number of purchases to lowest.

For more information on JSONQuery, see:
http://docs.persvr.org/documentation/jsonquery
http://groups.google.com/group/json-query
http://www.sitepen.com/blog/2008/07/16/jsonquery-data-querying-beyond-jsonpath/

JSONQuery is a superset of JSONPath:
http://goessner.net/articles/JsonPath/

Testing
-------

To run the test suite, simply open test/test.html in your browser.

To run the test suite in a server-side CommonJS environment, simply run the
'test/test.js' JavaScript file. Currently only available in NodeJS:

    $ node test/test.js

About

A JSONQuery implementation in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%