> ## 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 باستخدام Real JSON string escaping rules ويرجع complete quoted JSON string literal.

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

  ## الوسائط

  <ParamField path={"text"} type={"string"} required>
    String الذي سيتم quote له. Function تقرأ هذا argument باستخدام string type checking.
  </ParamField>

  ## القيم الراجعة

  <ResponseField name={"quoted"} type={"string"}>
    Complete JSON string literal يتضمن opening و closing quote. Quotes و backslashes و common control characters و bytes below 0x20 يتم escape لها.
  </ResponseField>

  ## مثال

  Convert string الى 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>
