Skip to content

About

Jackson module for ListWrapper - Wrap a list in a JSON object

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JacksonListWrapper

This is a module for jackson enabling serialization and deserialization of ListWrapper Instances.

Example:

ListWrapper("customValues", listOf("Hello", "World")

When serializing this object the resulting Json looks like:

{
  "customValues": [
    "Hello", 
    "World"
  ]
}

Usage

To use the custom de-/serializer you need to register the Module with the jackson object mapper

val objectMapper = ObjectMapper()
// register other modules like the kotlin module...
objectMapper.registerModule(ListWrapperModule())

About

Jackson module for ListWrapper - Wrap a list in a JSON object

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages