33
JQLite (lemmy.ml)
submitted 1 week ago by jay0072007@lemmy.ml to c/opensource@lemmy.ml

JQLite - The query language for JSON

Created a simple query language in Typescript,

however this is not any replacement for existing tools, but a side/learning project.

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 name of all the products which has a price greater than 1500

$.products[?(@.price > 1500)][*].name

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

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

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

you are viewing a single comment's thread
view the rest of the comments
[-] eager_eagle@lemmy.world 2 points 1 week ago

Forget the dependency, I don't want another language in my code.

this post was submitted on 12 May 2025
33 points (83.7% liked)

Open Source

37004 readers
84 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS