Skip to content
Snippets Groups Projects
Commit bbd42da2 authored by JustAnotherChristoph's avatar JustAnotherChristoph Committed by Christopher Konkel
Browse files

Replaced GSON with Jackson ObjectMapper in SloJson

parent 087b52d6
No related branches found
No related tags found
1 merge request!292Replace GSON with Jackson ObjectMapper
This commit is part of merge request !292. Comments created here will be created in the context of that merge request.
package rocks.theodolite.kubernetes.slo
import com.google.gson.Gson
import com.fasterxml.jackson.databind.ObjectMapper
import rocks.theodolite.kubernetes.util.PromResult
class SloJson constructor(
......@@ -9,7 +9,7 @@ class SloJson constructor(
) {
fun toJson(): String {
return Gson().toJson(
return ObjectMapper().writeValueAsString(
mapOf(
"results" to this.results,
"metadata" to this.metadata
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment