Class GSONUtils


  • public class GSONUtils
    extends Object
    Utility class containing utility functions to manipulated GSON objects
    • Constructor Detail

      • GSONUtils

        public GSONUtils()
    • Method Detail

      • gsonJsonObjectToMap

        public static Map gsonJsonObjectToMap​(com.google.gson.JsonElement jsonElement)
        Function to convert from GSON object model to generic map model.
        Parameters:
        jsonElement - gson object to transform
        Returns:
      • gsonJsonArrayToObjectArray

        public static Object[] gsonJsonArrayToObjectArray​(com.google.gson.JsonElement jsonElement)
        Function to convert GSON array model to generic array model.
        Parameters:
        jsonElement - gson array to transform
        Returns: