switch based on the trailing brace in the value, not the key



/cc @tmclaugh @chaoranxie