wil93 / jo

JSON output from a shell

Home Page:http://jpmens.net/2016/03/05/a-shell-command-to-create-json-jo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jo

jo logo

This is jo, a small utility to create JSON objects

$ jo -p name=jo n=17 parser=false
{
    "name": "jo",
    "n": 17,
    "parser": false
}

or arrays

$ seq 1 10 | jo -a
[1,2,3,4,5,6,7,8,9,10]

It has a manual, and you can read why I wrote jo.

Build from Release tarball

To build from a release you will need a C compiler to install from a source tarball which you download from the Releases page.

tar xvzf jo-1.3.tar.gz
cd jo-1.3
autoreconf -i
./configure
make check
make install

Build from Github

Build Status

To install from the repository, you will need a C compiler as well as a relatively recent version of automake and autoconf.

git clone git://github.com/jpmens/jo.git
cd jo
autoreconf -i
./configure
make check
make install

Homebrew

brew install jo

Ubuntu

apt-get install jo

Gentoo

emerge jo

Snap

Thanks to Roger Light, jo is available as a snap package. Use snap install jo from a Linux distro that supports snaps.

Others

See also

Credits

About

JSON output from a shell

http://jpmens.net/2016/03/05/a-shell-command-to-create-json-jo/

License:Other


Languages

Language:C 54.3%Language:Shell 27.8%Language:Roff 11.6%Language:Meson 2.3%Language:Makefile 2.2%Language:M4 1.6%Language:Dockerfile 0.2%