Class GSONDataTypeConverter
- java.lang.Object
-
- org.apache.synapse.commons.json.jsonprocessor.utils.GSONDataTypeConverter
-
public class GSONDataTypeConverter extends Object
This class provides functionality to convert between GSON data structures.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map.Entry<String,com.google.gson.JsonElement>
getMapFromJsonArray(com.google.gson.JsonArray array)
Given a json array, this method will return the mapstatic Map.Entry<String,com.google.gson.JsonElement>
getMapFromString(String input)
Given a string contains a json array, this method will return the Map.
-
-
-
Method Detail
-
getMapFromString
public static Map.Entry<String,com.google.gson.JsonElement> getMapFromString(String input)
Given a string contains a json array, this method will return the Map. This is where the single element array correction happens.- Parameters:
input
- JsonArray as a string.- Returns:
- map entry of json array.
-
-