title |
---|
Object Module | Juttle Language Reference |
Objects can be declared as constants in a flowgraph or variables in user defined functions.
The Object module exposes a single function, described here.
[TOC]
Scan an object containing key/value pairs and return a list of its keys.
Object.keys(object)
Parameter | Description | Required? |
---|---|---|
object |
The object from which to pluck keys | Yes |
Example
{!docs/examples/modules/object_keys.juttle!}
Returns a string representation of an object.
Object.toString(object)
Parameter | Description | Required? |
---|---|---|
object |
The object to stringify | Yes |
Example
{!docs/examples/modules/object_to_string.juttle!}
Scan an object containing key/value pairs and return a list of its values.
Object.values(object)
Parameter | Description | Required? |
---|---|---|
object |
The object from which to pluck values | Yes |
Example
{!docs/examples/modules/object_values.juttle!}