Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miolini/jsonf
Console JSON formatter with query feature
https://github.com/miolini/jsonf
Last synced: about 2 months ago
JSON representation
Console JSON formatter with query feature
- Host: GitHub
- URL: https://github.com/miolini/jsonf
- Owner: miolini
- License: zlib
- Created: 2015-05-25T04:53:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T21:45:56.000Z (over 3 years ago)
- Last Synced: 2024-04-14T14:15:49.178Z (2 months ago)
- Language: Go
- Size: 79.1 KB
- Stars: 65
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go-extra - jsonf - 05-25T04:53:32Z|2020-12-13T21:45:56Z| (JSON / Advanced Console UIs)
- awesome-go-zh - jsonf
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - | - | - | (JSON / Advanced Console UIs)
- awesome-go-cn - jsonf
- fucking-awesome-go - :octocat: jsonf - Console tool for highlighted formatting and struct query fetching JSON. :star: 26 :fork_and_knife: 4 (Utilities / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-go-projects - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Standard CLI)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go-with-framework - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go-cn - jsonf
- awesome-go-stars - jsonf(stars: 65) - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-go. - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go-cn - jsonf - 控制台工具,用于高亮及 JSON 查询功能 (实用工具 / 高级控制台界面)
- awesome-go-with-stars - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- repo-1316-awesome-go-cn - jsonf
- repo-1211-awesome-go-cn - jsonf
- awesome-go-zh - jsonf
- awesome-Char - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-reader - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- Go-awesome - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go-cn - jsonf
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go - jsonf - 控制台工具,用於高亮及 JSON 查詢功能 (實用工具 / 高級控制台界面)
- awesome-go-handwritten - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / HTTP Clients)
- awesome-go2 - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. - :arrow_down:0 - :star:29 (JSON / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (Utilities / Advanced Console UIs)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Advanced Console UIs)
- awesome-go-cn - jsonf
- awesome-go-cn - jsonf
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console tool for highlighted formatting and struct query fetching JSON. (JSON / Search and Analytic Databases)
- awesome-go - jsonf - Console JSON formatter with query feature - ★ 53 (Utilities)
- go-awesome-cn-star - jsonf
README
Console JSON formatter with query feature.
Install:
```$ go get github.com/miolini/jsonf```
Usage:
```
Usage of jsonf:
-c=true: colorize output
-d=false: debug output to stderr
-f=true: format output json to stdout
-q="": json query
-s=true: syntax hightlight
-v=false: verbose output to stderr
```Examples:
```
$ echo '{"uid":1,"email":"[email protected]","address":{"city":"New-York","country":"US"}}' | jsonf
```
![Output](https://cdn.rawgit.com/miolini/jsonf/master/output.png "Output")
```
$ echo '{"uid":1,"email":"[email protected]","address":{"city":"New-York","country":"US"}}' \
| jsonf -q 'value["address"]["country"]'
``````
"US"
```## Using from another Golang program
```go
import (
...
"github.com/miolini/jsonf/jsonflib"
...
)
...
jsonRaw, err := jsonflib.Highlight(
jsonRaw,
jsonflib.HighlightFlags{Colorize: true, Verbose: false, Debug: false},
)
if err != nil {
return err
}
```