Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
json manipulation tool
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

jules

Query and manipulate JSON using the command line.

Usage

jules <command> [arguments...]
jules <file> [selector] [value]

jules, like git, is command-centric. The command is the first argument and the way the rest of the arguments will be treated is determined by the command. Named arguments (like --no-pager) are global, used by a single command, or shared between multiple commands (but not all of them).

For xtreme convenience, there is a default command, used when a filename with an extension is given as the first argument. This passes all the arguments to the getset command.

Commands

get

get [selector]

Gets the value at selector and pretty-prints it. If the selector is omitted, pretty-prints the whole document.

set

set selector [value]

Sets the value at selector.

getset

getset [selector] [value]

If a value is given, runs the set command. Otherwise, runs the get command. The default command.

Topics

selector

The selector is a jsone reference, using dots and brackets.

pretty-printing

Pretty-printing is done by JSON.stringify with two spaces for indentation.

LICENSE

MIT.

Something went wrong with that request. Please try again.