https://github.com/skanehira/gjo
Small utility to create JSON objects
https://github.com/skanehira/gjo
Last synced: 3 months ago
JSON representation
Small utility to create JSON objects
- Host: GitHub
- URL: https://github.com/skanehira/gjo
- Owner: skanehira
- License: mit
- Created: 2019-02-23T01:54:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T16:48:02.000Z (over 4 years ago)
- Last Synced: 2025-08-14T00:27:38.569Z (4 months ago)
- Language: Go
- Size: 124 KB
- Stars: 130
- Watchers: 8
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go-cn - gjo
- awesome-go-plus - gjo - Small utility to create JSON objects.  (JSON / Search and Analytic Databases)
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- awesome-go-cn - gjo
- awesome-go - gjo - | - | - | (JSON / Advanced Console UIs)
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- awesome-go-with-stars - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- fucking-awesome-go - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- awesome-go-cn - gjo
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Advanced Console UIs)
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- awesome-go-extra - gjo - 02-23T01:54:21Z|2021-04-18T16:48:02Z| (JSON / Advanced Console UIs)
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Search and Analytic Databases)
- awesome-Char - gjo - Small utility to create JSON objects. (JSON / Advanced Console UIs)
- awesome-go - gjo - Small utility to create JSON objects. (JSON / Advanced Console UIs)
README
# gjo
[](https://github.com/skanehira/gjo/actions)
[](https://circleci.com/gh/skanehira/gjo/tree/master)
[](https://goreportcard.com/report/github.com/skanehira/gjo)
Small utility to create JSON objects.
This was inspired by [jpmens/jo](https://github.com/jpmens/jo).

## Support OS
- Mac
- Linux
- Windows
## Requirements
- Go 1.1.14~
- Git
## Installtion
### Build
```sh
$ git clone https://github.com/skanehira/gjo.git
$ cd gjo
$ GO111MODULE=on go install
```
### Binary
Please download from [releases](https://github.com/skanehira/gjo/releases)
## Usage
### Mac and Linux
```sh
$ 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
```
### Windows
If you want to use `$()` on the Windows, please install [shellwrap](https://github.com/mattn/shellwrap).
```sh
shellwrap gjo -p status=$(gjo name=gorilla age=26)
```
## Author
gorilla0513