Search code examples
javascriptjqueryjsonparsingtraversal

How to parse or query complex JSON in JavaScript


Is it possible to perform complex queries over a JSON object? I am open to JavaScript or jQuery solutions, the easier the better. I'm envisioning some kind of functional programming language similar to LINQ or SQL.

I Prefer no other third party libraries or add-ons.

UPDATE
From the looks of early answers, an add-on is going to be necessary. In that case, I prefer an add-on that requires no installation process. Something that deploys with the software publish (like jQuery) is fine (e.g. sets of *.js files).


Solution

  • Check out: Is there a query language for JSON?

    From that thread:

    JaQL(Wiki)

    JsonPath.

    Json Query