json-prune
The json-prune snippet traps calls to JSON.parse and, if the result is an Object, removes the specified properties from the result before returning to the caller.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
|
Space-separated properties to remove. |
Yes |
|
|
Space-separated properties which must all be present for pruning to occur. Accepts |
No |
|
|
Space-separated strings or regex which must be present in the call stack. |
No |
Filter examples
|
Filter |
Result |
|---|---|
|
|
Removes any |
|
|
Removes all |
|
|
Removes |
|
|
Removes all |
|
|
Removes all |
|
|
Removes array elements that have an |
|
|
Removes object properties that contain the property |
|
|
Removes |
Debugging
|
Message |
When |
Definition |
|---|---|---|
|
|
After wrapping |
The API was wrapped. |
|
|
After comparing stack trace |
The needle was found. |
|
|
After deletion |
A property was found and deleted. |