> ## 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 uma string usando Real JSON string escaping rules e retorna um 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 sera quoted. A function le este argument com string type checking.
  </ParamField>

  ## Retornos

  <ResponseField name={"quoted"} type={"string"}>
    Complete JSON string literal incluindo opening e closing quote. Quotes, backslashes, common control characters e bytes below 0x20 sao escapados.
  </ResponseField>

  ## Exemplo

  Convert uma string em um 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>
