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

JSON.parse

Returns a value representing the decoded JSON string

Non ancora tradotto

Sintassi

Lua
JSON.parse(value)

Parametri

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

Valore restituito

  • any the json in table

Esempi

Parses a JSON string into a Lua table
local decoded_value = JSON.parse('[1,2,3,{"x":10,"y":"Vector(1.0, 2.0, 3.0)"},"he"]')