Skip to main content
Creates a new table marked as a JSON array for json.encode, copying the 1.#source sequence when a source table is provided.

Syntax

Arguments

Returns

Example

Create an array-marked copy so json.encode serializes the value as a JSON array.