From 50beb4f15d4ba5197d942a54c244dd76dac9adf7 Mon Sep 17 00:00:00 2001 From: Xargin Date: Tue, 4 Jul 2017 17:05:39 +0800 Subject: [PATCH] update fuzzy convert table --- fuzzy_mode_convert_table.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzzy_mode_convert_table.md b/fuzzy_mode_convert_table.md index 1a3e78a..25c7196 100644 --- a/fuzzy_mode_convert_table.md +++ b/fuzzy_mode_convert_table.md @@ -1,7 +1,7 @@ | json type \ dest type | bool | int | uint | string | | --- | --- | --- | --- |--| -| number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 12|| -| string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 1 || +| number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 0|| +| string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 0 || | bool | true => true
false => false| true => 1
false => 0 | true => 1
false => 0 || | object | true | 0 | 0 || | array | empty array => false
nonempty array => true| [] => 0
[1,2] => 1 | [] => 0
[1,2] => 1 || \ No newline at end of file