Serialization

  • HTTP requests pass information as text
  • HTTP has no concept of Java classes
  • It's useful to be able to treat JSON data from a request as an object
  • It's also useful to go from an object back to JSON
  • Spring does this magically for you (actually using more reflection)
  • Going from an object to a text representation is serialization
  • Going from text to an object is deserialization

14 / 31