Skip to main content

Argümanlar

string
gerekli
Parse edilecek JSON text. parser optional surrounding whitespace iceren tek bir JSON value kabul eder ve invalid syntax veya trailing non-whitespace characters bulursa hata firlatir.
DecodeOptions
Optional decode options. boolean useNull degerini dogrudan ayarlar. table useNull ve maxDepth ayarlayabilir; maxDepth 1 ile 4096 arasinda clamp edilir.

Dönüşler

any
Decoded value. JSON objects ve arrays JSON type markers iceren tables olur, strings Lua strings olur, numbers Lua numbers olur, booleans booleans olur ve null, useNull false degilse json.null olur.

Tipler

DecodeOptions

JSON ayrıştırma davranışını kontrol eder.

Örnek

JSON degerini Lua values olarak decode edin ve JSON array, object, null markers degerlerini koruyun.