Created a simple query language for JSON data.

Features:

  • Basic query selection
  • Fallback Mechanism
  • Wildcard support
  • Array Slices
  • Multiple Key Selection
  • Key Omission
  • Single Key Omission
  • Functions
  • Comparison Operators
  • Conditions
  • Configurable

Here’s an example to get the list of adult friends:

$.friends[?(@.age >= 18)]

Runs in browsers, and Node.js

Documentation site: https://jqlite.vercel.app/

GitHub: https://github.com/Jay-Karia/jqlite

NPM Package: https://www.npmjs.com/package/jqlite-ts

⭐ Leaving a star on GitHub is much appreciated!

  • footfaults@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    But what about all those hours I spent torturing myself learning jq’s filter syntax, and jmespath ?

    • jay0072007OP
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      JQLite is not any replacement for existing tools, it’s just a learning/hobby project.