在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):craigmj/json4lua开源软件地址(OpenSource Url):https://github.com/craigmj/json4lua开源编程语言(OpenSource Language):Lua 100.0%开源软件介绍(OpenSource Introduction):json4luaJSON and JSONRPC for Lua Installation
JSON UsageEncodingjson = require('json')
print(json.encode({ 1, 2, 'fred', {first='mars',second='venus',third='earth'} })) [1,2,"fred", {"first":"mars","second":"venus","third":"earth"}] Decodingjson = require("json")
testString = [[ { "one":1 , "two":2, "primes":[2,3,5,7] } ]]
decoded = json.decode(testString)
table.foreach(decoded, print)
print ("Primes are:")
table.foreach(decoded.primes,print)
JSONRPC Usagejson = require('json')
require("json.rpc")
server = json.rpc.proxy("http://jsolait.net/testj.py")
result, error = server.echo('Test echo!')
print(result)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论