gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: remove gson leftover


From: gnunet
Subject: [libeufin] branch master updated: remove gson leftover
Date: Wed, 20 May 2020 15:46:17 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new da13ee3  remove gson leftover
da13ee3 is described below

commit da13ee3dd6949b8759817383271b94c6d81bd917
Author: Florian Dold <address@hidden>
AuthorDate: Wed May 20 19:16:06 2020 +0530

    remove gson leftover
---
 nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 4 ++--
 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
index 2b6b3ff..7aeacff 100644
--- 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)
     }
 
     /**

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]