top of page
- API -

obj = reaper.AZ_Json_Deserialize(jsonStr)

- API Detail -

▼入力値 

jsonStr : Json形式文字列


▼出力値 

obj : テーブル(lua)、list、 dict(python)

- SIMPLE SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


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

対応バージョン:

1.0.3

以降

Json形式文字列を配列に変換

bottom of page