jules

json manipulation tool

jules

Query and manipulate JSON.

Usage

$ jules location.json
{
  "city": "Boulder",
  "state": "CO"
}
$ jules location.json city
"Boulder"
$ jules location.json city Denver
$ jules location.json
{
  "city": "Denver",
  "state": "CO"
}
$ jules location.json state .remove
$ jules location.json
{
  "city": "Denver"
}
$ jules location.json
{
  "city": "Denver"
}
$ jules location.json state CO
$ jules location.json country US
$ jules location.json
{
  "city": "Denver",
  "state": "CO",
  "country": "US"
}
$ jules blog-entry.json
{
  "title": "Ralph Waldo Emerson quote",
  "body": "A foolish consistency is the hobgoblin of little minds",
  "tags": ["consistency"]
}
$ jules blog-entry.json tags
["consistency"]
$ jules blog-entry.json tags .push opinions
["consistency", "opinions"]
$ jules blog-entry.json
{
  "title": "Ralph Waldo Emerson quote",
  "body": "A foolish consistency is the hobgoblin of little minds",
  "tags": ["consistency", "opinions"]
}

Design Principles

  • Nothing extra for simple stuff. Just the data. get and set are implicit
  • Edits files. Make sure you're using version control.