メインコンテンツへスキップ

引数

table
Optional source table。省略または nil の場合、json.array は new empty array-marked table を返します。指定された場合、1 with #source の numeric sequence entries だけが new table にコピーされます。

戻り値

table
JSON array marker を持つ new table。json.encode はこれを JSON array として serializes します。original source table は返されません。

例

json.encode が値を JSON array として serializes するように array-marked copy を作成します。