Skip to main content

인수

string
필수
Parse할 JSON string입니다. function은 이 argument를 string type checking으로 읽습니다.
DecodeOptions
Optional decode options입니다. boolean은 useNull을 설정합니다. table은 useNull과 maxDepth를 설정할 수 있습니다.

반환값

any
Decoded value. JSON objects와 arrays는 JSON type markers가 있는 tables가 됩니다. strings는 Lua strings, numbers는 Lua numbers, booleans는 booleans가 되며, null은 useNull이 false가 아니면 json.null이 됩니다.

타입

DecodeOptions

JSON 구문 분석 동작을 제어합니다.

예제

json.decode가 사용하는 것과 같은 function으로 JSON을 parse합니다.