package scala
Provides Scala support for the Jackson JSON Processor.
Currently, full support is provided for:
- Option
- Tuple
- Seq
- Enumeration
Partial support exists for:
- Map; all maps are serialized but only unsorted maps can currently be deserialized.
- Iterable; any iterable can be serialized but cannot be deserialized.
def mapper = new ObjectMapper() mapper.registerModule(DefaultScalaModule)
- Since
1.9.0
- Alphabetic
- By Inheritance
- scala
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
DefaultScalaModule
extends Module with JacksonModule with IteratorModule with EnumerationModule with OptionModule with SeqModule with IterableModule with TupleModule with MapModule with SetModule with ScalaNumberDeserializersModule with ScalaAnnotationIntrospectorModule with UntypedObjectDeserializerModule with EitherModule
Complete module with support for all features.
Complete module with support for all features.
This class aggregates all of the feature modules into a single concrete class. Its use is recommended for new users and users who want things to "just work". If more customized support is desired, consult each of the constituent traits.
- Since
1.9.0
- See also
- trait EitherModule extends Module with EitherDeserializerModule with EitherSerializerModule
-
trait
EnumerationModule
extends Module with EnumerationSerializerModule with EnumerationDeserializerModule
Adds serialization and deserization support for Scala Enumerations.
-
trait
IterableModule
extends Module with IterableSerializerModule
Adds support for serializing Scala Iterables.
- trait IteratorModule extends Module with IteratorSerializerModule
- trait JacksonModule extends Module
- class JsonScalaEnumeration extends Annotation with Annotation with ClassfileAnnotation
- trait MapModule extends Module with MapSerializerModule with SortedMapDeserializerModule with UnsortedMapDeserializerModule
-
trait
OptionModule
extends Module with OptionSerializerModule with OptionDeserializerModule
Adds support for serializing and deserializing Scala Options.
-
trait
SeqModule
extends Module with IterableSerializerModule with SeqDeserializerModule
Adds support for serializing and deserializing Scala sequences.
- trait SetModule extends Module with UnsortedSetDeserializerModule with SortedSetDeserializerModule
-
trait
TupleModule
extends Module with TupleSerializerModule with TupleDeserializerModule
Adds support for serializing and deserializing Scala Tuples.
-
class
ScalaModule
extends DefaultScalaModule
- Deprecated
Value Members
- object DefaultScalaModule extends DefaultScalaModule
- object JacksonModule
- object VersionExtractor