Skip to main content

JSON: Keys

Return the list of top-level keys of an incoming JSON object. Equivalent to JavaScript's Object.keys.

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

Parameters

This function has no parameters.

Input

JSONREQUIRED
JSON object to inspect.

Output

Keys

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