인수
any
필수
Encode할 value입니다. nil, booleans, numbers, strings, tables, json.null은 직접 처리됩니다. Unsupported Lua types는 errorOnUnsupported가 true가 아니면 null로 encode됩니다.
EncodeOptions
Optional encode options입니다. boolean은 pretty output을 토글합니다. number는 0.16으로 clamp된 spaces 개수로 pretty output을 활성화합니다. string은 해당 indent로 pretty output을 활성화합니다. table은 pretty, sortKeys, emptyTableAsArray, errorOnUnsupported, encodeInvalidNumbersAsNull, maxDepth, indent를 설정할 수 있습니다.
반환값
string
Encoded JSON string입니다. Encoding errors는 Luau errors로 throw됩니다.