kasramp / spring-custom-serializer

Home Page:https://www.geekyhacker.com/2023/04/12/how-to-use-alternative-serializers-instead-of-jackson-with-spring-boot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"}'