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