gearpump-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEARPUMP-375) Switch from Upickle to Json4s for json serialization library
Date Sun, 29 Apr 2018 11:45:00 GMT

     [ https://issues.apache.org/jira/browse/GEARPUMP-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manu Zhang updated GEARPUMP-375:
--------------------------------
    Description: 
The current version of Upickle (0.3.4) has no scala 2.12 support while the latest version
(0.6.5) needs users to define a serializer in a case class's companion object. It will a
lot of effort to define those serializers given the number of case classes we have in Services
module.

I propose we switch to Json4s, a facade for various scala json libraries, which supports scala
2.12 and can serialize case class out of box

The only concern could be that Json4s has no [Scala.js support|https://github.com/json4s/json4s/issues/256]
yet but we are not using Scala.js anyway

  was:
The current version of Upickle (0.3.4) has no scala 2.12 support while the latest version
(0.6.5) needs users to define a serializer in a case class's companion object. It will a
lot of effort to define those serializers given the number of case classes we have in Services
module.

I propose we switch to Json4s, a facade for various scala json libraries, which supports scala
2.12 and can serialize case class out of box


> Switch from Upickle to Json4s for json serialization library
> ------------------------------------------------------------
>
>                 Key: GEARPUMP-375
>                 URL: https://issues.apache.org/jira/browse/GEARPUMP-375
>             Project: Apache Gearpump
>          Issue Type: Improvement
>            Reporter: Manu Zhang
>            Assignee: Manu Zhang
>            Priority: Major
>
> The current version of Upickle (0.3.4) has no scala 2.12 support while the latest version
(0.6.5) needs users to define a serializer in a case class's companion object. It will a
lot of effort to define those serializers given the number of case classes we have in Services
module.
> I propose we switch to Json4s, a facade for various scala json libraries, which supports
scala 2.12 and can serialize case class out of box
> The only concern could be that Json4s has no [Scala.js support|https://github.com/json4s/json4s/issues/256]
yet but we are not using Scala.js anyway



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message