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

> json.encode icin JSON array olarak isaretlenmis new table olusturur ve source table verildiginde 1.#source sequence degerini kopyalar.

<div className="real-function-page">
  ```lua theme={null}
  json.array(source?: table): table
  ```

  ## Argümanlar

  <ParamField path={"source"} type={"table"}>
    Optional source table. Atlanirsa veya nil ise json.array new empty array-marked table dondurur. Verilirse, yalnizca 1 with #source arasindaki numeric sequence entries new table icine kopyalanir.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"array"} type={"table"}>
    JSON array marker iceren new table. json.encode bunu JSON array olarak serializes eder; original source table dondurulmez.
  </ResponseField>

  ## Örnek

  json.encode degerini JSON array olarak serializes etsin diye array-marked copy olusturun.

  ```lua theme={null}
  local tags = json.array({ "api", "docs", "luau" })
  local empty = json.array()

  print(json.encode(tags))
  print(json.encode(empty))
  print(json.type(empty))
  ```
</div>
