Package org.apache.synapse.commons.json.jsonprocessor.utils

## 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 map
    `static Map.Entry<String,​com.google.gson.JsonElement>` | `getMapFromString​(String input)` | Given a string contains a json array, this method will return the Map.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.

    - #### getMapFromJsonArray

          public static Map.Entry<String,​com.google.gson.JsonElement> getMapFromJsonArray​(com.google.gson.JsonArray array)

      Given a json array, this method will return the map
      Parameters:
        `array` - input array.
      Returns:
        map entry of json array