Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Condiviso

JSON.stringify

Returns a string representing value encoded in JSON

Non ancora tradotto

Sintassi

Lua
JSON.stringify(value)

Parametri

Nome Tipo Predefinito Descrizione
value table the table that will become JSON

Valore restituito

  • string the table in JSON

Esempi

Stringifies a Lua table
local encoded_value = JSON.stringify({ 1, 2, 3, { x = 10, y = Vector(1, 2, 3) }, "he" })