由于不是windows下的vs项目,需要使用CMAKE转换一下,cmake下载地址:http://www.cmake.org/cmake/resources/software.html
我下载的是:
Windows (Win32 Installer) |
编写Lua脚本测试使用:
local cjson = require "cjson"
s1 = [[{"result":0,"next_req":600,"error":""}]]
s2 = [[{"ads":[{"monitor":"","is_sens":0}]}
]]
j1 = cjson.decode(s1)
j2 = cjson.decode(s2)
print(j1['ads'])
print(j2['ads'])