https://github.com/kasramp/spring-custom-serializer
https://github.com/kasramp/spring-custom-serializer
genson-serializer moshi moshi-serializer spring spring-boot spring-boot-moshi spring-boot-moshi-converter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kasramp/spring-custom-serializer
- Owner: kasramp
- Created: 2023-02-25T20:58:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T21:01:45.000Z (about 2 years ago)
- Last Synced: 2025-01-25T09:26:21.234Z (4 months ago)
- Topics: genson-serializer, moshi, moshi-serializer, spring, spring-boot, spring-boot-moshi, spring-boot-moshi-converter
- Language: Java
- Homepage: https://www.geekyhacker.com/2023/04/12/how-to-use-alternative-serializers-instead-of-jackson-with-spring-boot/
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
- [How to use alternative serializers instead of Jackson with Spring Boot](https://www.geekyhacker.com/2023/04/12/how-to-use-alternative-serializers-instead-of-jackson-with-spring-boot/)
## Test
Run the following curl command, it creates a dummy user:
```bash
$ curl -X POST "http://localhost:8080/v1/users" -H "accept: application/json" -H "Content-Type: application/json" -d '{"firstName":"John", "lastName": "Wick", "email": "[email protected]"}'
```