Open topic with navigation

# 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.

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

_FT_HTML5_bannerTitle.htm