From 8a52e69fa95167661899ab8710c5942c990c815d Mon Sep 17 00:00:00 2001 From: skanehira Date: Sat, 2 Nov 2019 10:04:09 +0900 Subject: [PATCH] add readme about editing nodes --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 5589553..ed8b434 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,21 @@ $ tson < test.json $ tson -url http://gorilla/likes/json ``` +### About Editing nodes +When editing a node value, the JSON value type is determined based on the value. +For example, after inputed `10.5` and saving the JSON to a file, it will be output as a float type `10.5`. +If the value sorround with `"`, it will be output as string type always. +The following is a list of conversion rules. + +| input value | json type | +|--------------------|-----------| +| `gorilla` | string | +| `10.5` | float | +| `5` | int | +| `true` or `false` | boolean | +| `null` | null | +| `"10"` or `"true"` | string | + ## Keybinding ### JSON tree