1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00
json-iterator/fuzzy_mode_convert_table.md
2017-07-05 00:39:20 +08:00

835 B

json type \ dest type bool int uint float string
number positive => true
negative => true
zero => false
23.2 => 23
-32.1 => -32
12.1 => 12
-12.1 => 0
as normal
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
12.1 => 12.1
-12.3 => -12.3
12.4xxa => 12.4
+1.1e2 =>110
bool true => true
false => false
true => 1
false => 0
true => 1
false => 0
true => 1
false => 0
object true 0 0 0
array empty array => false
nonempty array => true
[] => 0
[1,2] => 1
[] => 0
[1,2] => 1
[] => 0
[1,2] => 1