set currentSwitchesId to "{"
repeat with nextKey in sortedKeys
if currentSwitchesId is not equal to "{" then set currentSwitchesId to currentSwitchesId & ", "
set currentSwitchesId to currentSwitchesId & nextKey & ": " & switch's active(nextKey)
end repeat
set currentSwitchesId to currentSwitchesId & "}"