> ## 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.

# fromObject

> Convertir un objet Lua en chaîne JSON.

Convertir un objet Lua en chaîne JSON.

#### 🎮 Méthode

```lua theme={null}
developer:fromObject(object)
```

#### 📝 Arguments

| Nom      | Type     | Description         |
| -------- | -------- | ------------------- |
| `object` | `object` | Objet ou table Lua. |

#### 💎 Valeur de retour

| Type     | Description              |
| -------- | ------------------------ |
| `string` | Chaîne formatée en JSON. |

#### 💡 Exemple

```lua theme={null}
local item = {name = "Épée", damage = 50}
local json = fromObject(item)
global:printMessage(json)
```
