Skip to main content

JSON: Keys

Return the list of top-level keys of an incoming JSON object. Similar to JavaScript's Object.keys, except that the keys are returned in alphabetical order, not in insertion order.

Example
Input: {"id": 1, "name": "alice", "email": "a@b.c"}
Output: ["email", "id", "name"]

Parameters

This function has no parameters.

Input

JSON Elementrequired

JSON object to inspect. The connector also accepts the Object type. Any non-object input (array, string, number, ...) fails the step with an InvalidInputType error.

Output

Array

List of strings — the object's top-level keys, alphabetically sorted.