الوسائط
string
مطلوب
JSON string يتم parse له. Function تقرأ هذا argument باستخدام string type checking.
DecodeOptions
Optional decode options. boolean يضبط useNull. table يمكنها ضبط useNull و maxDepth.
القيم الراجعة
boolean
true عندما ينجح parsing، و false عندما يفشل parsing داخل protected parse block.
any | nil
Decoded value عند success. عند parse failure، هذا return يكون nil.
string | nil
Error message عند parse failure. Message تكون prefixed بـ json.decodeSafe وتتضمن near-position suffix.
number | nil
Parser byte position من parser عند parse failure. هذا return موجود فقط عند failure.