Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skanehira/gjo
Small utility to create JSON objects
https://github.com/skanehira/gjo
Last synced: 1 day 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 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T16:48:02.000Z (over 3 years ago)
- Last Synced: 2024-07-30T20:43:29.275Z (5 months ago)
- Language: Go
- Size: 124 KB
- Stars: 123
- Watchers: 9
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- 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)
README
# gjo
[![GitHub Actions status](https://github.com/skanehira/gjo/workflows/Go/badge.svg)](https://github.com/skanehira/gjo/actions)
[![CircleCI](https://img.shields.io/circleci/project/github/skanehira/gjo/master.svg)](https://circleci.com/gh/skanehira/gjo/tree/master)
[![Go Report Card](https://goreportcard.com/badge/github.com/skanehira/gjo)](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).![sreenshot](./screenshot.png)
## 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