Is there a good way to encode a JavaScript object as JSON?
I have a list of key value pairs...where the name is from a checkbox, and the value is either true or fals
I think you can use JSON.stringify:
// after your each loop JSON.stringify(values);