Create JSON from Java objects and store the JSON into a file. I use Gson, GsonBuilder, JsonSerializer,JsonDeserializer, TypeToken, PrintWriter, Stream, BufferedStream, and a set of Java DTOs that I want to use to create JSON. First I write the objects to a file, then I read the file and create objects from the JSON data.
Source code is freely available on GitHub at https://github.com/discospiff/Vehicle...