y);
                    
                    if (currentMeasure === key && currentCategory === category) {
                        item.classList.add('selected');
                    }
                    
                    container.appendChild(item);
                });
            });
            
            updateJSONOutput();
        }

        function selectMeasure(category, measureKey) {
            currentCategory = category;
            currentMeasure = measureKey;
            const measure = m