Added --json option to cc