Passer au contenu principal

Documentation Index

Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt

Use this file to discover all available pages before exploring further.

Convertir une chaîne JSON en objet Lua.

🎮 Méthode

developer:toObject(jsonString)

📝 Arguments

NomTypeDescription
jsonStringstringChaîne formatée en JSON.

💎 Valeur de retour

TypeDescription
objectObjet Lua analysé.

💡 Exemple

local json = '{"name":"Item","value":100}'
local obj = toObject(json)
global:printMessage(obj.name .. " = " .. obj.value)