diff options
author | Unknwon <u@gogs.io> | 2018-06-09 17:20:38 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-06-09 17:20:38 +0800 |
commit | 694208865b103e6eb96f8e7e1b394037de9a89ba (patch) | |
tree | 737f55cc961965cba088d78559bbf5707630dce6 /vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md | |
parent | a75c4352453f3dfde38f2cd4930a020427951539 (diff) |
vendor: add github.com/json-iterator/go
Diffstat (limited to 'vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md')
-rw-r--r-- | vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md b/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md new file mode 100644 index 00000000..3095662b --- /dev/null +++ b/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md @@ -0,0 +1,7 @@ +| json type \ dest type | bool | int | uint | float |string| +| --- | --- | --- | --- |--|--| +| number | positive => true <br/> negative => true <br/> zero => false| 23.2 => 23 <br/> -32.1 => -32| 12.1 => 12 <br/> -12.1 => 0|as normal|same as origin| +| string | empty string => false <br/> string "0" => false <br/> other strings => true | "123.32" => 123 <br/> "-123.4" => -123 <br/> "123.23xxxw" => 123 <br/> "abcde12" => 0 <br/> "-32.1" => -32| 13.2 => 13 <br/> -1.1 => 0 |12.1 => 12.1 <br/> -12.3 => -12.3<br/> 12.4xxa => 12.4 <br/> +1.1e2 =>110 |same as origin| +| bool | true => true <br/> false => false| true => 1 <br/> false => 0 | true => 1 <br/> false => 0 |true => 1 <br/>false => 0|true => "true" <br/> false => "false"| +| object | true | 0 | 0 |0|originnal json| +| array | empty array => false <br/> nonempty array => true| [] => 0 <br/> [1,2] => 1 | [] => 0 <br/> [1,2] => 1 |[] => 0<br/>[1,2] => 1|original json|
\ No newline at end of file |