Simple Solution
  • Java
  • Spring
  • Spring Boot
  • Tutorials
  • Tags
Convert Java Object to JSON File in Java using Gson
Convert Java Object to JSON File in Java using Gson

In this Java Gson tutorial we learn how to use the Gson library to convert a Java object into JSON file using the Gson.toJson() method with FileWriter. Via different Java program examples we show you how to convert a JSON file from an object of HashMap, ArrayList, an object of a custom defined class or a List of objects.

Java Convert classpath resource JSON File to Java Object using Gson
Java Convert classpath resource JSON File to Java Object using Gson

In this Java Gson tutorial, we show you how to read a JSON file from classpath resources and convert the JSON content to Java object using the Gson library and Apache Commons IO library. By different Java example programs we learn how to convert JSON content to a HashMap, a List of Map, an object of a custom defined class or a List of objects.

Convert JSON File to Java Object in Java using Gson
Convert JSON File to Java Object in Java using Gson

In this Java Gson tutorial we learn how to convert a JSON file into a Java object using the Gson class of the Gson library. By different Java example programs we show you how to convert a JSON file into a HashMap object, a list of Map, an object of custom defined classes or a List of objects.

Generate Pretty Print JSON String in Java using Gson
Generate Pretty Print JSON String in Java using Gson

In this Java Gson tutorial we learn how to use the Gson library to generate a readable pretty print JSON String from a Java object. Via Java detail Java example we will show you how to use the GsonBuilder.setPrettyPrinting() method to configure Gson to output JSON String that fits in a page for pretty printing.

Convert Java Object to JSON String in Java using Gson
Convert Java Object to JSON String in Java using Gson

In this Java Gson tutorial we learn how to use the Gson library to convert a Java object to a JSON String using the Gson.toJson() method. Via step by step Java example we show you how to convert to a JSON String from a HashMap, a List of HashMap, a Java object or List of Java objects.

Convert JSON String to Java Object in Java using Gson
Convert JSON String to Java Object in Java using Gson

In this Java Gson tutorial we learn how to use the Gson library to convert a JSON String into a Java object by using Gson class. Via different Java code examples we show you how to convert a JSON String into Java HashMap, an object of a custom defined class or a List of objects.

Java Google Guava Tutorial
Java Google Guava Tutorial

In this Java Google Guava tutorial we learn how to use the Google Guava library.

Java Log4j Tutorial
Java Log4j Tutorial

In this Java Log4j tutorial we learn how to use the Log4j library.

Java Apache PDFBox Tutorial
Java Apache PDFBox Tutorial

In this Java Apache PDFBox tutorial we learn how to use the Apache PDFBox library.

Java Apache POI Tutorial
Java Apache POI Tutorial

In this Java Apache POI tutorial we learn how to use the Apache POI library.

  • 1
  • 2
  • 3
  • …
  • 64
  • 65
  • 66
  • …
  • 103

Copyright © 2019 SimpleSolution.dev. All Rights Reserved.