-
Notifications
You must be signed in to change notification settings - Fork 501
Open
Description
local cjson = require "cjson"
local tab = {}
tab[10] = 199
tab.pp = "fan"
local estr = cjson.encode(tab)
print("-------------", estr)
local totab = cjson.decode(estr)
for k,v in pairs(totab) do
print("---fff-------", k,v)
end
the question : 199 change to 199.0, so bad when i use to json protocol to communicate with client!
how to solve it, please.
thanks!
martin-eden, HappyYkj, v1993 and LitschiW
Metadata
Metadata
Assignees
Labels
No labels