mirror of
https://github.com/skanehira/tson
synced 2024-11-15 12:13:04 +00:00
update readme about add value
This commit is contained in:
parent
ccc3f95767
commit
48aadd9719
22
README.md
22
README.md
@ -44,6 +44,7 @@ $ tson -url http://gorilla/likes/json
|
||||
| r | read from file |
|
||||
| s | save to file |
|
||||
| a | add new node |
|
||||
| A | add new value |
|
||||
| Enter | edit node |
|
||||
| / | search nodes |
|
||||
|
||||
@ -87,5 +88,26 @@ then you will get new tree as following.
|
||||
└──gorilla
|
||||
```
|
||||
|
||||
Also, You can use `A` to add new value to current node.
|
||||
|
||||
For example, you have following tree.
|
||||
|
||||
```
|
||||
{object} <- your cursor in there
|
||||
└──name
|
||||
└──gorilla
|
||||
```
|
||||
|
||||
If you input `{"age": 26}` and press add button,
|
||||
then you will get new tree as following.
|
||||
|
||||
```
|
||||
{object} <- your cursor in there
|
||||
├──name
|
||||
│ └──gorilla
|
||||
└──age
|
||||
└──26
|
||||
```
|
||||
|
||||
# Author
|
||||
skanehira
|
||||
|
Loading…
Reference in New Issue
Block a user