This is a tiny module for the Jackson serialization library. This module allows to serialize Shapeless HLists.
This module is published at Maven Central. Use the following sbt snippet ...
- for the stable release:
libraryDependencies ++= Seq(
"ru.arkoit.jackson.module" %% "shapeless" % "0.1.1"
)
- for the
SNAPSHOT
version:
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(
"ru.arkoit.jackson.module" %% "shapeless" % "0.1.2-SNAPSHOT" changing()
)
Mixin this module as you usually do with other Scala Jackson Modules. For example, it can be used like this:
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.scala.DefaultScalaModule
import ru.arkoit.jackson.module.shapeless.HListModule
val mapper = new ObjectMapper
mapper.registerModule(new DefaultScalaModule with HListModule)
For now this module is only able to serialize HLists. However, other shapeless related stuff may be added in the future as well. You are welcome to make pull requests in this direction.