2019-10-28 09:23:49 +00:00
|
|
|
# tson
|
2019-10-31 03:20:55 +00:00
|
|
|
`tson` is JSON viewer written in Go.
|
|
|
|
This tool displays JSON as a tree and you can search and edit key or values.
|
|
|
|
|
|
|
|
![](https://i.imgur.com/tBGLEsT.gif)
|
|
|
|
|
2019-10-31 04:59:16 +00:00
|
|
|
## Support OS
|
|
|
|
- Mac
|
|
|
|
- Linux
|
|
|
|
|
2019-10-31 18:28:03 +00:00
|
|
|
## Installation
|
2019-10-31 03:20:55 +00:00
|
|
|
```sh
|
|
|
|
$ git clone https://github.com/skanehira/tson
|
2019-10-31 18:28:03 +00:00
|
|
|
$ cd tson && go install
|
2019-10-31 03:20:55 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
|
|
$ tson < test.json
|
|
|
|
```
|
|
|
|
|
2019-10-31 18:28:03 +00:00
|
|
|
## Keybinding
|
|
|
|
### JSON tree
|
2019-10-31 03:20:55 +00:00
|
|
|
|
|
|
|
| key | description |
|
|
|
|
|--------|---------------------|
|
|
|
|
| j | move down |
|
|
|
|
| k | move up |
|
|
|
|
| g | move to the top |
|
|
|
|
| G | move to the bottom |
|
|
|
|
| ctrl-f | page up |
|
|
|
|
| ctrl-b | page down |
|
|
|
|
| h | hide current node |
|
|
|
|
| H | collaspe all nodes |
|
|
|
|
| l | expand current node |
|
|
|
|
| L | expand all nodes |
|
|
|
|
| r | read from file |
|
|
|
|
| Enter | edit node |
|
|
|
|
| / | search nodes |
|
|
|
|
|
|
|
|
# Author
|
|
|
|
skanehira
|