# LuaJsonArray Methods

A `LuaJsonArray` object represents a JSON array.

If you have a `LuaJsonArray` object called `myJsonArray` you can call its methods using the '`:`' operator. For example:

    myJsonArray:size()

Constructor | Description
--- | ---
LuaJsonArray:new | The constructor for a `LuaJsonArray` object (creates a new `LuaJsonArray`).

Method | Description
--- | ---
append | Appends a value to the array.
clear | Clears the array, so that it contains no values.
copy | Copies the array.
empty | Checks whether the array is empty.
exists | Checks whether a specified path exists in the array.
existsByPath | Checks whether a specified path exists in the array.
ipairs | Returns an iterator function that you can use to iterate over all of the values in the array.
lookup | Returns the value at a specified path in the array.
lookupByPath | Returns the value at a specified path in the array.
size | Returns the size of the array.
string | Returns the array as a string.

© Copyright 2018-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm