Đối số
string
bắt buộc
JSON string de validate. Function doc argument nay bang string type checking.
DecodeOptions
Optional decode options. boolean dat useNull. table co the dat useNull va maxDepth. maxDepth duoc clamp tu 1 den 4096.
Giá trị trả về
boolean
true khi parsing mot complete JSON value duy nhat thanh cong. false khi parsing that bai trong protected parse block.
string | nil
Error message khi parse failure. Message duoc prefixed bang json.validate va co near-position suffix. Return nay chi co khi failure.
number | nil
Parser byte position tu parser khi parse failure. Return nay chi co khi failure.