gradle / gradle-profiler

A tool for gathering profiling and benchmarking information for Gradle builds
Apache License 2.0
1.4k stars 155 forks source link

Strings written into Chrome trace JSON output are not escaped properly #541

Open quijote opened 9 months ago

quijote commented 9 months ago

gradle-profiler did not produce valid JSON when I ran it with --profile chrome-trace on one of my builds. Specifically the "name" property contained special characters like " and new lines that were not escaped. The result is invalid JSON that Chrome can't parse.