Score
0
Watch 82 Star 352 Fork 72

合宙Luat / LuatOSLuaMIT

json.encode处理浮点数出错

缺陷
已完成
Wendal owner  Opened this issue

代码

json.encode({abc=1.5})

预期输出 {"abc":1.5}

实际输出 {"abc":1}

Attachments
4674 wendal 1578914274 total 1 participants

Comments (3)

4674 wendal 1578914274
Wendal 2020-08-16 23:03 owner

已修正lua-json库的代码

4674 wendal 1578914274
Wendal 2020-08-17 14:27 owner

结果发现air302下浮点数的格式化有问题,坑呀

4674 wendal 1578914274
Wendal 2020-09-10 11:50 owner

终于解决了

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority