Skip to content

kasramp/spring-custom-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot custom Json serializer/deserializer

A simple example demonstrating how to use genson serializer instead of jackson on Spring Boot. For moshi implementation check moshi-serializer branch.

For more details check:

Test

Run the following curl command, it creates a dummy user:

$ curl -X POST "http://localhost:8080/v1/users" -H  "accept: application/json" -H  "Content-Type: application/json" -d '{"firstName":"John", "lastName": "Wick", "email": "john.wick@continental.org"}'