Only convert commands to JSON once