Properly handling array commands when making default json key