Class JsonUtils

java.lang.Object
utils.JsonUtils

public class JsonUtils extends Object
  • Constructor Details

    • JsonUtils

      public JsonUtils()
  • Method Details

    • parseJsonSequence

      public static <T> List<T> parseJsonSequence(InputStream inputStream, com.google.gson.Gson gson, Class<T> clazz)
      Parses the provided input stream consisting of multiple json objects into a list of the provided class
      Type Parameters:
      T - The type of the class that the jsons are converted to
      Parameters:
      inputStream - The input stream to parse
      gson - The gson class to use
      clazz - The class to convert to
      Returns:
      The list that is returned