Swap [] and {}