Allow --json to be specified anywhere in the command string