Web Connector 25.4
Web Connector Help

# LuaJsonObject Methods

A `LuaJsonObject` object represents a JSON object.

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

    object:size()

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

Method | Description
--- | ---
assign | Adds an attribute (a name/value pair) to the object.
assign | Adds a table of attributes (name/value pairs) to the object.
clear | Clears the object, so that it contains no attributes.
copy | Copies the object.
empty | Checks whether the object is empty.
erase | Removes a specified attribute (name/value pair) from the object.
exists | Checks whether a specified path exists in the object.
existsByPath | Checks whether a specified path exists in the object.
lookup | Returns the value at a specified path in the object.
lookupByPath | Returns the value at a specified path in the object.
pairs | Returns an iterator function that you can use to iterate over all of the attributes in the object.
size | Returns the number of attributes (name/value pairs) contained in the object.
string | Returns the object as a string.

Copyright 2025 Open Text
Version 25.4 | Last updated October 2025

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 Web Connector 25.4

Topic Title: LuaJsonObject Methods