Skip to content

Repository files navigation

JQL

Tests Documentation

JSON Query Language for humans

JQL transforms JSON files with concise and readable queries

Installation

npm install --global @andreydem0505/jql

Usage

Given customers.json:

[
  {"name": "Amina", "email": "amina@example.com", "city": "Berlin"},
  {"name": "Jon", "email": "jon@example.com", "city": "London"}
]

Run:

jql "select {name, email} from 'customers.json'"

Result:

[
  {"name": "Amina", "email": "amina@example.com"},
  {"name": "Jon", "email": "jon@example.com"}
]

Interactive mode

Run jql without a query, then enter one query per line:

jql
Current version: 1.0.0

Enter a JQL query. Type exit or press Ctrl+C to stop.
jql> select {name} from 'customers.json'

Contributing

Contributions are welcome. Open an issue or pull request with an improvement. If JQL is useful to you, support the project with a GitHub star.

Releases

Packages

Contributors

Languages