> ## 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 JSON string escape sequences tu escaped string content hoac tu complete quoted JSON string literal. Input duoc parse bang JSON string parser, khong phai full JSON document.

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

  ## Đối số

  <ParamField path={"text"} type={"string"} required>
    Escaped JSON string content, hoac complete quoted JSON string literal co first and last bytes la quotes. Function doc argument nay bang string type checking.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"text"} type={"string"}>
    Decoded string. Supported escapes gom ", \\, /, \b, \f, \n, \r, \t va \uXXXX voi surrogate-pair handling. Invalid escapes, unescaped control characters, unterminated strings va trailing characters sau quoted literal se throw Luau error voi near-position suffix.
  </ResponseField>

  ## Ví dụ

  Decode JSON string escapes tu escaped content hoac 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>
