In this video, I have explained how to write out configuration object (Object of Preference class) in to a file with the help of JSON library. JSON allows to write objects as strings (which is also human readable).
For using JSON from java, I have used GSON library : https://github.com/google/gson
During first run of the program, default configuration file is generated with default values. In the next video, I will complete updating the configuration file from settings GUI.
Get the source code from https://github.com/afsalashyana/Libra...
#JSON
#JavaJSON
#JavaFX
Genuine Coder
http://www.genuinecoder.com/