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

> Bir string'i Real JSON string escaping rules ile escape eder ve surrounding quotes olmadan escaped content dondurur.

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

  ## Argümanlar

  <ParamField path={"text"} type={"string"} required>
    Escape edilecek string. Function bu argument degerini string type checking ile okur.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"escaped"} type={"string"}>
    Opening ve closing quote olmadan escaped JSON string content. Quotes, backslashes, common control characters ve bytes below 0x20 escape edilir.
  </ResponseField>

  ## Örnek

  Surrounding quotes eklemeden JSON string icine koymak icin string escape eder.

  ```lua theme={null}
  local source = "line 1" .. string.char(10) .. [[line "2"]]
  local escaped = json.escape(source)

  print(escaped)
  ```
</div>
