Skip to content

Take control of your JSON; slice, filter, map, transform, calculate — in a custom little language.

License

Notifications You must be signed in to change notification settings

tjoekbezoer/jsq

Repository files navigation

jsq

Take control of your JSON; slice, filter, map, transform, calculate — it's up to you. All in a purpose-designed, simple language. With GZIP, it's less than 5KB.

An example:

var i = {
  "data": [
    {"uid": 1, "grades": [5,7,8]},
    {"uid": 2, "grades": [3,9,6]}
  ],
  "users": {
    1: {"name": "Bruce Willis"},
    2: {"name": "Samuel L. Jackson"}
  }
};

jsq(i, '.users as $u | .data[] | {$u[.uid].name: (.grades|max)}');
// » [{"Bruce Willis":8}, {"Samuel L. Jackson":9}]

About

Take control of your JSON; slice, filter, map, transform, calculate — in a custom little language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published