json-prune
The json-prune
snippet traps calls to JSON.parse
and, if the result of the parsing is an Object, it will remove 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 which must be all present for the pruning to occur. Can include placeholders | 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 |
| Removes all the |
| Removes all the |
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. |
| The snippet is parsing the placeholder. | The path leading up to the placeholder is accurate. If a success log does not follow this, it indicates that the filter needs further refinement beyond the placeholder. |
| After a property was deleted. | A property was found and deleted. If |
Last updated