Skip to content

expiracy/java-object-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

java-object-to-json

Converts a java object instance to a JSON file with the use of Java reflection. The serializes any private, protected and public attributes within a class.

This code can be plugged into any existing code to save the state of a program by serializing it.

The main method demonstrates how to use the code with class A, B and C being demonstration classes.

The format of the json is: {"attribute_name":"value"}

About

Converts a java object instance to a JSON file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages