when i use cjson.encode(table), the table is modified order ,why? e.g: local json = cjson.encode({name="yhc",age=40,birthday="1985"}) print(json) -- {"birthday":"1985","name":"yhc","age":40} i don't want to change,how to do?
when i use cjson.encode(table), the table is modified order ,why?
e.g:
local json = cjson.encode({name="yhc",age=40,birthday="1985"})
print(json) -- {"birthday":"1985","name":"yhc","age":40}
i don't want to change,how to do?