top of page
- API -
jsonStr = reaper.AZ_Json_Serialize(obj)
- API Detail-
▼Input value
obj: Array (lua) *Map array is also possible
▼Output value
jsonStr: The converted JSON format string
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
t = {1,2,3,4,5}
jsonStr = reaper.AZ_Json_Serialize(t)
Msg(jsonStr)
t = {
tracks = {
{
track = "AZ1",
num = -21
},
{
track = "AZ2",
num = -25
},
{
track = "AZ3",
num = -24
}
}
}
jsonStr = reaper.AZ_Json_Serialize(t)
Msg(jsonStr)
STRING
AZ_Json_Serialize
Supported versions:
1.1.0
onwards
Convert an array to a JSON formatted string

bottom of page


