JavaScript - Querying Objects

07/10/2022, Sun
Categories: #JavaScript

Data Querying

As JSON/JavaScript objects are heavily relied upon means of accessing data, it is crucial to quickly retrieve certain pieces of information within the object quickly. For simple objects, a couple of loops will suffice in honing in to the exact detail, but most likely, the general object will be more complex.

A general querying library can alleviate the difficulty of getting a specific key or value within deeply nested objects. Ideally, the library of choice should have the following features:

These are some evaluations for a select group of libraries that I have researched to fit the criteria defined above:

Ultimately, mingo was my choice for the query library because it offers a balance between size and functionality while also being maintained.