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

> Escape string bang Real JSON string escaping rules va tra ve complete quoted JSON string literal.

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

  ## Đối số

  <ParamField path={"text"} type={"string"} required>
    String se duoc quote. Function doc argument nay bang string type checking.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"quoted"} type={"string"}>
    Complete JSON string literal gom opening va closing quote. Quotes, backslashes, common control characters va bytes below 0x20 duoc escape.
  </ResponseField>

  ## Ví dụ

  Convert string thanh complete quoted JSON string literal.

  ```lua theme={null}
  local source = "Real Docs" .. string.char(10) .. [[Documentation "A"]]
  local quoted = json.quote(source)

  print(quoted)
  ```
</div>
