Static function
JSON.stringify
Returns a string representing value encoded in JSON
Syntax
JSON.stringify(value)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value
|
table | — | the table that will become JSON |
Returns
- string the table in JSON
Examples
local encoded_value = JSON.stringify({ 1, 2, 3, { x = 10, y = Vector(1, 2, 3) }, "he" })