HubSpot Connector 25.2
HubSpot Connector Help

# LuaJsonValue Methods

A `LuaJsonValue` object represents a JSON value.

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

    myJsonValue:is_object()

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

Method | Description
--- | ---
array | Gets a `LuaJsonArray` that represents the JSON array, if the value is an array.
copy | Copies the value.
exists | Checks whether a specified path exists in the value (when the value is a JSON array or object).
existsByPath | Checks whether a specified path exists in the value (when the value is a JSON array or object).
is_array | Returns whether the value is a JSON array.
is_boolean | Returns whether the value is a Boolean value.
is_float | Returns whether the value is a floating point value.
is_integer | Returns whether the value is an integer value.
is_null | Returns whether the value is a null value.
is_number | Returns whether the value is a number.
is_object | Returns whether the value is a JSON object.
is_simple_value | Returns whether the value is a simple value (Boolean, float, integer, or string).
is_string | Returns whether the value is a string value.
lookup | Returns the value at a specified path (when the value is a JSON array or object).
lookupByPath | Returns the value at a specified path (when the value is a JSON array or object).
object | Gets a `LuaJsonObject` that represents the JSON object, if the value is an object.
string | Returns the value as a string.
value | Returns the value, if the JSON value is a simple type. If you specify a default value and the value cannot be converted to the same type as the default, the default value is returned.

Copyright 2025 Open Text
Version 25.2 | Last updated April 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 HubSpot Connector 25.2

Topic Title: LuaJsonValue Methods