> ## 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

> Mendecode JSON string escape sequences dari escaped string content atau dari complete quoted JSON string literal. Input di-parse dengan JSON string parser, bukan sebagai full JSON document.

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

  ## Argumen

  <ParamField path={"text"} type={"string"} required>
    Escaped JSON string content, atau complete quoted JSON string literal dengan first and last bytes berupa quotes. Function membaca argument ini dengan string type checking.
  </ParamField>

  ## Return

  <ResponseField name={"text"} type={"string"}>
    Decoded string. Supported escapes mencakup ", \\, /, \b, \f, \n, \r, \t, dan \uXXXX dengan surrogate-pair handling. Invalid escapes, unescaped control characters, unterminated strings, dan trailing characters setelah quoted literal melempar Luau error dengan near-position suffix.
  </ResponseField>

  ## Contoh

  Decode JSON string escapes dari escaped content atau 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>
