Skip to main content

Arguments

string
required
Escaped JSON string content หรือ complete quoted JSON string literal ที่ first and last bytes เป็น quotes function อ่าน argument นี้ด้วย string type checking

Returns

string
Decoded string. Supported escapes รวม ”, \, /, \b, \f, \n, \r, \t และ \uXXXX พร้อม surrogate-pair handling. Invalid escapes, unescaped control characters, unterminated strings และ trailing characters หลัง quoted literal จะ throw Luau error พร้อม near-position suffix

ตัวอย่าง

Decode JSON string escapes จาก escaped content หรือ quoted JSON string literal