4 Star 26 Fork 4

Wen Tao/jsoniter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fuzzy_mode_convert_table.md 927 Bytes
一键复制 编辑 原始数据 按行查看 历史
Xargin 提交于 8年前 . update conversion table
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 same as origin
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
same as origin
bool true => true
false => false
true => 1
false => 0
true => 1
false => 0
true => 1
false => 0
true => "true"
false => "false"
object true 0 0 0 originnal json
array empty array => false
nonempty array => true
[] => 0
[1,2] => 1
[] => 0
[1,2] => 1
[] => 0
[1,2] => 1
original json
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/taowen/jsoniter.git
git@gitee.com:taowen/jsoniter.git
taowen
jsoniter
jsoniter
master

搜索帮助