/ JSON

Small utility to create JSON objects

Small utility to create JSON objects

gjo

Small utility to create JSON objects.

This was inspired by jpmens/jo.

Requirements

  • Go 1.1.14~
  • Git

Installtion

$ git clone https://github.com/skanehira/gjo.git
$ cd gjo
$ GO111MODULE=on go install

Usage

$ gjo -p status=$(gjo name=gorilla age=26 lang=$(gjo -a Go Java PHP))
{
    "status": {
        "age": 26,
        "lang": [
            "Go",
            "Java",
            "PHP"
        ],
        "name": "gorilla"
    }
}
$ gjo -h
Usage of gjo:
  -a    creates an array of words
  -p    pretty-prints
  -v    show version

GitHub