Argumenty
any
wymagane
Value do encode. nil, booleans, numbers, strings, tables i json.null sa obslugiwane bezposrednio. Unsupported Lua types sa encode jako null, chyba ze errorOnUnsupported jest true.
EncodeOptions
Optional encode options. boolean przelacza pretty output. number wlacza pretty output z taka liczba spaces clamp do 0.16. string wlacza pretty output z tym indent. table moze ustawic pretty, sortKeys, emptyTableAsArray, errorOnUnsupported, encodeInvalidNumbersAsNull, maxDepth i indent.
Zwroty
string
Encoded JSON string. Encoding errors sa rzucane jako Luau errors.