Lets say I have an object
filter: { \"ID\": false, \"Name\": true, \"Role\": false, \"Sector\": true, \"Code\": false }
hasOwnProperty must be used
```
for(var i in your_object) { if (Object.hasOwnProperty.call(your_object, i)) { your_object[i] = false; } }