Object
You can create, update, retrieve, and manage key-value pairs in an object.
Contains Key
You can check whether the specified key is present in an object.
- Object
- Object in which you want to check.
- Key
- Key you want to check against an object.
Example - If the object is {"Name":"John", "City: "Winterfell", "Age":"10"} and
the Key is Name, the Contains Key operation returns
true.
Create Object
You can create an object that contains specific key-value pairs.
The input field is as follows:
- Add Fields
- List of key-value pairs that you want to add to the object. Click + under the Add Fields label to add the key-value pairs.
Get
You can retrieve the value associated with a key in an object.
- Object
- Object from which you want to fetch the value of a key.
- Key
- Key of which value you want to fetch.
Example - If the object is {"Name":"John", "City: "Winterfell", "Age":"10"} and
the Key is Name, the Get operation returns
John.
List Keys
You can fetch the keys of the specified object.
The input field is as follows:
- Object
- Object from which you want to fetch the keys.
Example - If the object is {"Name":"John", "City: "Winterfell", "Age":"10"}, the
List Keys operation returns [“Name”,“City”,“Age”].
Put
You can insert a key-value pair in the specified object.
The input fields are as follows:
- Object
- Object in which you want to insert a key-value pair.
- Key
- The key you want to insert in the object.
- Value
- The value for key to be inserted in the object.
Example - If the object is {"Name":"John", "City: "Winterfell"}, the
Key is Age, and the Value is 10, the
Put operation returns {"Name":"John", "City: "Winterfell",
"age":"10"}.
Remove
You can remove an item from an object.
- Object
- Object from which you want to remove a key-value pair.
- Key
- The key you want to remove from the object.
Example - If the object is {"Name":"John", "City: "Winterfell"} and the
Key is Name, the Remove operation returns
{"City: "Winterfell"}.
Size
Retrieves the number of key-value pairs in an object.
The input field is as follows:
- Object
- The object for which you want to get the count of key-value pairs.
Example - If the object is {"Name":"John", "City: "Winterfell"}, the operation
returns 2.