인수
string
필수
parse 할 JSON text 입니다. parser 는 optional surrounding whitespace 가 있는 하나의 JSON value 를 허용하고 invalid syntax 또는 trailing non-whitespace characters 가 있으면 throw 합니다.
DecodeOptions
Optional decode options. boolean 은 useNull 을 직접 설정합니다. table 은 useNull 과 maxDepth 를 설정할 수 있습니다. maxDepth 는 1 에서 4096 으로 clamp 됩니다.
반환값
any
Decoded value. JSON objects 와 arrays 는 JSON type markers 가 있는 tables 가 됩니다. strings 는 Lua strings, numbers 는 Lua numbers, booleans 는 booleans 가 되며, null 은 useNull 이 false 가 아니면 json.null 이 됩니다.