Implemented JSON output of checkboxes