用lua的cjson包就行了。
下载地址在这里 http://www.kyne.com.au/~mark/software/lua-cjson.php
安装的话,make&make install就行了。
		local str = '["a", "b", "c"]'
		local j = cjson.decode(str)
		for i,v in ipairs(j) do
		    print(v)
		end
		str = '{"A":1, "B":2}'
		j = cjson.decode(str)
		for k,v in pairs(j) do
		    print(k..":"..v)
		end
		j['C']='c'
		new_str = cjson.encode(j)
		print(new_str)
新闻热点
疑难解答