Class GSONUtils
- java.lang.Object
-
- org.wso2.carbon.integrator.core.json.utils.GSONUtils
-
public class GSONUtils extends Object
Utility class containing utility functions to manipulated GSON objects
-
-
Constructor Summary
Constructors Constructor Description GSONUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object[]
gsonJsonArrayToObjectArray(com.google.gson.JsonElement jsonElement)
Function to convert GSON array model to generic array model.static Map
gsonJsonObjectToMap(com.google.gson.JsonElement jsonElement)
Function to convert from GSON object model to generic map model.
-
-
-
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:
-
-