Skip to main content

Arguments

string
requis
Escaped JSON string content, ou un complete quoted JSON string literal dont les first and last bytes sont des quotes. L function lit cet argument avec string type checking.

Retours

string
Decoded string. Supported escapes incluent ”, \, /, \b, \f, \n, \r, \t et \uXXXX avec surrogate-pair handling. Invalid escapes, unescaped control characters, unterminated strings et trailing characters apres un quoted literal lancent une Luau error avec near-position suffix.

Exemple

Decode les JSON string escapes depuis escaped content ou un quoted JSON string literal.