Serialisation and deserialisation with Spring Framework

float like a butterfly sting like a bee

Ali said that long time ago. Suit his character — on the fight stage.

Serialisation is the conversion of the state of an object into a byte stream; deserialisation does the opposite.

I’ve been working on an API project for analytic purposes for the past few months and today I focused on serialisation & deserialisation — mainly to efficiently manage data stream activity for optimum performance.

Our API consumer request & receive response in the JSON format. When it comes to request body (from API consumer)— Spring deserialise (parse) the JSON into JAVA object (model). And for response body send to API consumer; Spring serialise from JAVA object to JSON.

The above bi-directional relationship powered by Spring Data JPA, and MySQL Connector.

--

--

Software engineering and film. All are work-in-progress.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store