top of page
- API -

obj = reaper.AZ_Json_Deserialize(jsonStr)

- API Detail-

▼Input value

jsonStr : JSON format string


▼Output value

obj : table (lua), list, dict (python)

- SCRIPT -

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}

jsonStr = reaper.AZ_Json_Serialize(t)

table = reaper.AZ_Json_Deserialize(jsonStr)

Msg(table[2])


t = {

tracks = {

{

track = "AZ1",

num = -21

},

{

track = "AZ2",

num = -25

},

{

track = "AZ3",

num = -24

}

}

}

jsonStr = reaper.AZ_Json_Serialize(t)

table = reaper.AZ_Json_Deserialize(jsonStr)

Msg(table.tracks[3].track)

STRING

AZ_Json_Deserialize

Supported versions:

1.0.3

onwards

Convert Json format string to array

bottom of page