os = reaper.GetOS()
if "Win" == string.match(os,"(Win)") then
package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"
else
package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dylib"
end
require("reaper_AZSTOKE_SILVER")
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
t = {1,2,3,4,5}
retval,jsonStr = reaper.AZ_Json_Serialize(t)
Msg(jsonStr)
t = {
tracks = {
{
track = "AZ1",
num = -21
},
{
track = "AZ2",
num = -25
},
{
track = "AZ3",
num = -24
}
}
}
retval,jsonStr = reaper.AZ_Json_Serialize(t)
Msg(jsonStr)
- SCRIPT -
retval,jsonStr = reaper.AZ_Json_Serialize(obj)
- API -
ID
STRING
reaper.AZ_Json_Serialize
対応バージョン:
1.1.0
以降
配列をJson形式文字列に変換
LUA
- API Detail-
▼入力値
obj : 配列(lua)※Map配列可
▼出力値
retval : 終了コード(0: 正常終了)
jsonStr : 変換後のJson形式文字列