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

> Escapa un string usando Real JSON string escaping rules y devuelve un complete quoted JSON string literal.

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

  ## Argumentos

  <ParamField path={"text"} type={"string"} required>
    String que se va a quote. La function lee este argument con string type checking.
  </ParamField>

  ## Retornos

  <ResponseField name={"quoted"} type={"string"}>
    Complete JSON string literal incluyendo opening y closing quote. Quotes, backslashes, common control characters y bytes below 0x20 se escapan.
  </ResponseField>

  ## Ejemplo

  Convert un string en un 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>
