Exchange Web Service Connector 24.2

# 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 2024 Open Text
Version 24.2 | Last updated March 2024

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: IDOL Exchange Web Service Connector 24.2

Topic Title: LuaJsonObject Methods