Développeur
fromObject
Convertir un objet Lua en chaîne JSON.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Convertir un objet Lua en chaîne JSON.
developer:fromObject(object)
| Nom | Type | Description |
|---|---|---|
object | object | Objet ou table Lua. |
| Type | Description |
|---|---|
string | Chaîne formatée en JSON. |
local item = {name = "Épée", damage = 50}
local json = fromObject(item)
global:printMessage(json)