NiFi Ingest 26.3
NiFi Ingest

# LuaJsonArray:new

The constructor for a `LuaJsonArray` object (creates a new `LuaJsonArray`).

## Syntax

    LuaJsonArray:new( values )

## Arguments

Argument | Description
--- | ---
`values` | (lua_json_type) The values to add to the array. Each value can be a Boolean, float, integer, string, LuaJsonArray, LuaJsonObject, LuaJsonValue, or nil.

## Returns

(LuaJsonArray). The new `LuaJsonArray` object.

## Example

The following is a simple JSON array:

    [4, "a string", true]

To create a `LuaJsonArray` object to represent this array:

    local myJsonArray = LuaJsonArray:new(4,"a string",true)

Copyright 2018-2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery NiFi Ingest 26.3

Topic Title: LuaJsonArray:new