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

> Membuat new table yang ditandai sebagai JSON array untuk json.encode, menyalin sequence 1.#source saat source table diberikan.

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

  ## Argumen

  <ParamField path={"source"} type={"table"}>
    Optional source table. Saat dihilangkan atau nil, json.array mengembalikan new empty array-marked table. Saat diberikan, hanya numeric sequence entries dari 1 with #source yang disalin ke new table.
  </ParamField>

  ## Return

  <ResponseField name={"array"} type={"table"}>
    New table dengan JSON array marker. json.encode melakukan serializes sebagai JSON array; original source table tidak dikembalikan.
  </ResponseField>

  ## Contoh

  Buat array-marked copy agar json.encode melakukan serializes nilai sebagai JSON array.

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