Skip to main content

JSON: Omit

Remove several top-level keys from an incoming JSON object in one call. Missing keys are ignored. Use JSON::DeleteKey when you only need to drop a single field.

Example
Keys: ["internal", "secret"]
Input: {"id": 1, "name": "alice", "internal": true, "secret": "x"}
Output: {"id": 1, "name": "alice"}

Parameters

KeysREQUIRED

List of top-level keys to remove. Nested paths are not supported. An empty list passes the object through unchanged.

Input

JSONREQUIRED
JSON object to operate on.

Output

Output
The same object minus the listed keys.