JSON output of GHC Diagnostics