> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# json.unescape

> Decode les JSON string escape sequences depuis escaped string content ou depuis un complete quoted JSON string literal. L entree est parsee avec le JSON string parser, pas comme full JSON document.

<div className="real-function-page">
  ```lua theme={null}
  json.unescape(text: string): string
  ```

  ## Arguments

  <ParamField path={"text"} type={"string"} required>
    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.
  </ParamField>

  ## Retours

  <ResponseField name={"text"} type={"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.
  </ResponseField>

  ## Exemple

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

  ```lua theme={null}
  local escaped = json.escape("Real Docs" .. string.char(10) .. "Docs")
  local restored = json.unescape(escaped)

  print(restored)
  ```
</div>
