Add --json-contests option to randcontest.