Skip to main content

Argumenty

string
wymagane
JSON string do parse. Function czyta ten argument przez string type checking.
DecodeOptions
Optional decode options. boolean ustawia useNull. table moze ustawic useNull i maxDepth.

Zwroty

any
Decoded value. JSON objects i arrays staja sie tables z JSON type markers, strings staja sie Lua strings, numbers staja sie Lua numbers, booleans staja sie booleans, a null staje sie json.null, chyba ze useNull jest false.

Typy

DecodeOptions

Kontroluje zachowanie analizy JSON.

Przykład

Parse JSON ta sama function, ktorej uzywa json.decode.