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

> Decodifica JSON string escape sequences desde escaped string content o desde un complete quoted JSON string literal. La entrada se parsea con el JSON string parser, no como full JSON document.

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

  ## Argumentos

  <ParamField path={"text"} type={"string"} required>
    Escaped JSON string content, o un complete quoted JSON string literal cuyos first and last bytes son quotes. La function lee este argument con string type checking.
  </ParamField>

  ## Retornos

  <ResponseField name={"text"} type={"string"}>
    Decoded string. Supported escapes incluyen ", \\, /, \b, \f, \n, \r, \t y \uXXXX con surrogate-pair handling. Invalid escapes, unescaped control characters, unterminated strings y trailing characters despues de un quoted literal lanzan un Luau error con near-position suffix.
  </ResponseField>

  ## Ejemplo

  Decodifica JSON string escapes desde escaped content o 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>
