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

> Bir JSON string degerini parse eder ve Real default non-pretty JSON encoder output ile tekrar encode eder.

<div className="real-function-page">
  ```lua theme={null}
  json.minify(json: string, options?: DecodeOptions): string
  ```

  ## Argümanlar

  <ParamField path={"json"} type={"string"} required>
    Minifying oncesinde parse edilen JSON string. Function bu argument degerini string type checking ile okur.
  </ParamField>

  <ParamField path={"options"} type={"DecodeOptions"}>
    Input JSON parsing sirasinda kullanilan optional decode options. boolean useNull ayarlar. table useNull ve maxDepth ayarlayabilir.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"minified"} type={"string"}>
    Input parsing ve default encode options ile re-encoding sonrasi uretilen JSON string.
  </ResponseField>

  ## Tipler

  ### DecodeOptions

  JSON ayrıştırma davranışını kontrol eder.

  | Name       | Type      | Required | Açıklama                                                               |
  | ---------- | --------- | -------- | ---------------------------------------------------------------------- |
  | `useNull`  | `boolean` | No       | Nil yerine kütüphanenin null sentinel'i ile JSON null'u temsil eder.   |
  | `maxDepth` | `integer` | No       | 1'den 4096'ya kadar kenetlenmiş maksimum yuvalama derinliğini ayarlar. |

  ## Örnek

  Valid JSON parse eder ve default compact JSON output ile re-encode eder.

  ```lua theme={null}
  local formatted = [[{
      "name": "Real",
      "enabled": true,
      "missing": null
  }]]

  print(json.minify(formatted, {
      useNull = true,
  }))
  ```
</div>
