index_json: refactor to allow grouping of options in order to generate <optgroup> elements with #select2
index_json: refactor to allow grouping of options in order to generate <optgroup> elements with #select2

conanite/evil_scaffold