인수
string
필수
validate할 JSON string입니다. function은 이 argument를 string type checking으로 읽습니다.
DecodeOptions
Optional decode options입니다. boolean은 useNull을 설정합니다. table은 useNull과 maxDepth를 설정할 수 있습니다. maxDepth는 1에서 4096으로 clamp됩니다.
반환값
boolean
하나의 complete JSON value parsing이 성공하면 true입니다. protected parse block 안에서 parsing이 실패하면 false입니다.
string | nil
parse failure일 때의 Error message입니다. message는 json.validate로 prefixed되고 near-position suffix를 포함합니다. 이 return은 failure일 때만 존재합니다.
number | nil
parse failure일 때 parser의 Parser byte position입니다. 이 return은 failure일 때만 존재합니다.