Building a dynamic set of checkboxes from JSON data