Nicer switch cases for enums, refactor JSONAdapter get views