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

# toObject

> Convertir une chaîne JSON en objet Lua.

Convertir une chaîne JSON en objet Lua.

#### 🎮 Méthode

```lua theme={null}
developer:toObject(jsonString)
```

#### 📝 Arguments

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

#### 💎 Valeur de retour

| Type     | Description        |
| -------- | ------------------ |
| `object` | Objet Lua analysé. |

#### 💡 Exemple

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