Skip to content

Commit

Permalink
Pretty print JSON reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ogolberg authored Nov 1, 2023
1 parent 756daa0 commit 152dfbc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class IssueReport(
val issues: List<Issue>
) {
companion object {
private val JSON = Json { }
private val JSON = Json {
prettyPrint = true
}

fun fromJson(string: String) = JSON.decodeFromString<IssueReport>(string)
fun fromJson(stream: InputStream) = JSON.decodeFromStream<IssueReport>(stream)
Expand Down

0 comments on commit 152dfbc

Please sign in to comment.