Skip to content

daveclay/jackson-module-scala

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project to build Jackson (http://jackson.codehaus.org) module (jar) that supports Scala (http://www.scala-lang.org/) data types.

The Scala Module supports serialization and limited deserialization of Scala Lists, Maps, and other immutable and mutable collection types. Scala's collection API does not inheret from Java's collection API; therefore this module is necessary to support Scala. For documentation on usage, please refer to the scala test cases:

src/test/scala/com/fasterxml/jackson/module/scala/SerializationTest.scala
src/test/scala/com/fasterxml/jackson/module/scala/DeserializationTest.scala

To use the Scala Module in Jackson, simply register it with the ObjectMapper instance:

val mapper = new ObjectMapper()
mapper.registerModule(new ScalaModule())

ObjectMapper methods readValue and writeValue will use the ScalaModule's ScalaDeserializers and ScalaSerializers to implement the Scala collection conversions. 

About

Add-on module for Jackson (http://jackson.codehaus.org) to support Scala-specific datatypes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 84.6%
  • Java 15.4%