REMOVE_KEY

Removes the specified key from an object. Path is a dot separated path to the object, you can escape dots using backslash

Syntax 

REMOVE_KEY(object, path)

Examples 

Example 1

Input

{
  "my_action": {
    "person": {
      "name": "Stanley",
      "email": "kubrik@movies.com"
    }
  }
}

Formula

REMOVE_KEY(my_action, "person.email")

Output

{
  "person": {
    "name": "Stanley"
  }
}
Example 2

Input

{
  "my_action": {
    "person": {
      "first.name": "Stanley"
    }
  }
}

Formula

REMOVE_KEY(my_action, "first\.name")

Output

{
  "person": {
    "email": "kubrik@movies.com"
  }
}
Was this helpful?