bmel:json-omit¶
Category: JSON · Returns: bmel:string
bmel:json-omit(object: bmel:any, keys: bmel:array)
Description¶
Returns a new JSON string with the specified top-level keys removed. The inverse of bmel:json-pick. Supports dot-notation keys for nested omits.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
object | bmel:any | ✅ | The source JSON object or string to remove keys from. |
keys | bmel:array | ✅ | Array of key names (strings) to exclude from the output. |
Example¶
bmel:json-omit({chat:Request Payload}.$.body, ["api_key", "user"])