Task References

On this page:

keys (object)


The keys (object) task accepts an object that contains key/value pairs and will return an array that contains the 'key' field information (only) in the same order as it was presented by the original object. JSON formatted content is an object, and therefore a highly suited use case.

Potential Use Case

Use this task if you need to build a form that displays 'key' names of an object as labels on the form.


Incoming Type Description
obj Object Required. The object from which the key names should be converted to an array.

Outgoing Type Description
keys Array The key names found within the obj variable.


Example 1

In this example, the obj value is statically set to:

  "success": true,
  "deck_id": "bybjeupe9ymb",
  "remaining": 52,
  "shuffled": true


This sample content was obtained via the GET/restCall task applied to the Deck of Cards API.

The outgoing keys value will be an array with the following contents: