Skip to main content

Argumentos

string
obrigatório
JSON string que recebe parse. A function le este argument com string type checking.
DecodeOptions
Optional decode options. Um boolean define useNull. Uma table pode definir useNull e maxDepth.

Retornos

any
Decoded value. JSON objects e arrays viram tables com JSON type markers, strings viram Lua strings, numbers viram Lua numbers, booleans viram booleans, e null vira json.null a menos que useNull seja false.

Tipos

DecodeOptions

Controla o comportamento de análise JSON.

Exemplo

Parse JSON com a mesma function usada por json.decode.