Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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).

like image 285
P.Brian.Mackey Avatar asked Nov 04 '25 16:11

P.Brian.Mackey


1 Answers

Check out: Is there a query language for JSON?

From that thread:

JaQL(Wiki)

JsonPath.

Json Query

like image 164
Ryan Ternier Avatar answered Nov 07 '25 11:11

Ryan Ternier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!