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

> Escapet einen string mit Real JSON string escaping rules und gibt ein complete quoted JSON string literal zurueck.

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

  ## Argumente

  <ParamField path={"text"} type={"string"} required>
    String, der quoted wird. Die function liest dieses argument mit string type checking.
  </ParamField>

  ## Rückgaben

  <ResponseField name={"quoted"} type={"string"}>
    Complete JSON string literal inklusive opening und closing quote. Quotes, backslashes, common control characters und bytes below 0x20 werden escaped.
  </ResponseField>

  ## Beispiel

  Convert einen string in ein 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>
