Lets say I have an object
filter: { \"ID\": false, \"Name\": true, \"Role\": false, \"Sector\": true, \"Code\": false }
A small line of code compatible with all browsers:
for(var i in your_object) your_object[i] = false;