commit da13ee3dd6949b8759817383271b94c6d81bd917
parent 2e04e5e970163f1920c486197ce0fadc7f04c481
Author: Florian Dold <florian.dold@gmail.com>
Date: Wed, 20 May 2020 19:16:06 +0530
remove gson leftover
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -1,6 +1,6 @@
package tech.libeufin.nexus
-import com.google.gson.Gson
+import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import io.ktor.application.call
import io.ktor.content.TextContent
import io.ktor.http.ContentType
@@ -186,7 +186,7 @@ class Taler(app: Route) {
* string (what this function does), and use the simpler respondText method.
*/
private fun customConverter(body: Any): String {
- return Gson().toJson(body)
+ return jacksonObjectMapper().writeValueAsString(body)
}
/**