Serialization and Deserialization in Java

Serialization and Deserialization in Java

See https://www.geeksforgeeks.org/serialization-and-deserialization-in-java/

Java SerialVersionUID: Object Versioning

jaxb

For working with xml and xsds

TODO

  1. https://www.baeldung.com/jaxb
  2. https://stackoverflow.com/questions/607141/what-is-jaxb-and-why-would-i-use-it

jackson

For working with json

TODO

  1. https://github.com/FasterXML/jackson
  2. https://www.baeldung.com/jackson
    1. Look at these sections in the link above.
    2. Jackson - Basics
      1. Jackson Annotation Examples
      2. Intro to the Jackson ObjectMapper - Jackson ObjectMapper
      3. Jackson Unmarshalling JSON with Unknown Properties
      4. XML Serialization and Deserialization with Jackson
      5. Using Optional with Jackson
      6. Jackson Date
      7. Jackson Exceptions - Problems and Solutions
    3. Jackson - Customization
      1. Jackson Ignore Properties on Marshalling
      2. Ignore Null Fields with Jackson
      3. Jackson - Change Name of Field
      4. Guide to @JsonFormat in Jackson
      5. Jackson - Marshall String to JsonNode
      6. Jackson - Custom Serializer
      7. Getting Started with Custom Deserialization in Jackson
      8. Spring Boot: Customize the Jackson ObjectMapper
      9. OffsetDateTime Serialization With Jackson
      10. Deserialize Snake Case to Camel Case With Jackson
    4. Jackson - Advanced
      1. More Jackson Annotations
      2. Jackson JSON Views
      3. Map Serialization and Deserialization with Jackson
      4. How To Serialize and Deserialize Enums with Jackson
      5. Mapping a Dynamic JSON Object with Jackson
      6. Mapping Nested Values with Jackson
      7. Jackson - Bidirectional Relationships
      8. Working with Tree Model Nodes in Jackson
      9. @JsonSubTypes vs. Reflections for Polymorphic Deserialization in Jackson
      10. Fix the JsonMappingException: Can not deserialize instance of java.util.ArrayList from Object value (token JsonToken.START_OBJECT)
      11. How to Process YAML with Jackson

Protocol Buffers

TODO

Apache Thrift

TODO

  1. https://thrift.apache.org/
  2. https://github.com/apache/thrift/tree/master/tutorial
  3. https://thrift.apache.org/static/files/thrift-20070401.pdf
  4. https://medium.com/devglossary/what-is-apache-thrift-is-it-the-same-as-grpc-2562dba125b0
  5. https://thrift-tutorial.readthedocs.io/en/latest/intro.html

Tags

  1. Serialization Optimizations in Java applications

Links to this note