Gson Advanced — Changing the Default Serialization with Custom Serialization (Part 2)

In this blog post, we'll extend the journey on writing a custom Gson serializer. In the first part we've shown all basics of setting up the code to customize Gson's JSON serialization. If you haven't read it yet, you might want to do so now, since this blog post is going to build upon it.

The first part had a focus on simplifying JSON objects before sending them to the server. In this second part, we'll look at another reason to customize the serialization: Java objects that have no or an inappropriate default serialization.

Of course, this will not be the only post in our Gson series. If you're interested in the other topics, check out our series outline:

Gson Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.