how to resovle decode a empty table to array and object separately?
sniper-xx opened this issue · 3 comments
sniper-xx commented
how to resovle decode a empty table to array and object separately?
sniper-xx commented
The json data from the backend server, both have empty array and empty object. when decode the json data, it's only to controll cjson decode either to array or to object. but that leads to troubles. Is there any resolution to resolve this proplem?
sniper-xx commented
It's solved using decode_array_with_array_mt. thanks!
Bdthomson commented
@sniper-xx you just saved me so much time. Thank you.