Different from what @ganncamp says, you can generate the sonar-report.json file in SonarQube 7.4. You need to pass these properties to sonar-scanner:
-Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json
The .json will be generated inside the .scannerwork
directory.