AR_Engine_SDK
Functions | Variables
xjson.lua File Reference

Functions

function xjson decode (jsonStr)
 
function xjson decode_file (filePath)
 
function xjson encode (luaTable)
 

Variables

 xjson = {}
 

Function Documentation

◆ decode()

function xjson decode ( jsonStr  )

反序列化

Parameters
jsonStrstring json字符串
Returns
table

◆ decode_file()

function xjson decode_file ( filePath  )

反序列化一个文件中的内容

Parameters
filePathstring 绝对路径

◆ encode()

function xjson encode ( luaTable  )

序列化

Parameters
luaTabletable luaTable
Returns
string

Variable Documentation

◆ xjson

xjson = {}