json-prune
The json-prune
snippet traps calls to JSON.parse
. If the result of the parsing is an object, the snippet removes the specified properties from the result before returning to the caller.
Use json-prune
when you want to remove properties from an object parsed with JSON.parse.
Parameters
Name | Description | Mandatory |
---|---|---|
| A list of space-separated properties to remove. | Yes |
| A list of space-separated properties. All must be present for pruning to occur. | No |
Filter examples
The following table lists examples that use the json-override
snippet:
Filter | Result |
---|---|
| Removes any |
| Removes all |
| Removes any |
| Removes all |
| Removes all |
Debugging
The following table contains messages you'll find useful during debugging:
Message | When the message occurs | Definition |
---|---|---|
| After | The snippet was injected and the API was wrapped. |
| After a property was deleted. | A property was found and deleted. If |
Last updated