An open API service indexing awesome lists of open source software.

https://github.com/bgunson/object-serialization

Reflective Object Serialization in Java
https://github.com/bgunson/object-serialization

json

Last synced: 2 months ago
JSON representation

Reflective Object Serialization in Java

Awesome Lists containing this project

README

          

## Reflective Object Serialization Project

This is a project that lets a user create 5 different objects and input their fields which is then
serialized to a JSON string using [org.json](https://github.com/stleary/JSON-java). These operations take place on a theoretical server where a
serialized object with unique properties is sent to a client via a socket, deserialized then recreated.

I have used a Maven project structure to organize my external libraries and test classes. It is most
easily ran from an IDE that supports Maven projects. I have represented the server/client in respective
packages in _src/main/java_. There are two main methods, one being on the server side in _Sender.java_ and the
other being in _Receiver.java_ on the client side. In addition the 5 test objects which the user can create
reside in the _objects_ package. All creation and de/serialization is acheived at runtime via the _java.lang.reflect_
package.