Skip to main content

JSON: Delete Key

Remove a single top-level key from an incoming JSON object. A no-op when the key is absent. Use JSON::Omit to remove several keys at once.

Example
Key: "internal"
Input: {"id": 1, "name": "alice", "internal": true}
Output: {"id": 1, "name": "alice"}

Parameters

KeyREQUIRED

Top-level key to remove. Nested paths are not supported — use JSON::MergeObjects or JSON::DataModel for tree edits.

Input

JSONREQUIRED
JSON object to operate on.

Output

Output

The same object minus the configured key.