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

## Class GSONDataTypeConverter

- java.lang.Object
- - org.apache.synapse.commons.json.jsonprocessor.utils.GSONDataTypeConverter

-     public class GSONDataTypeConverter
      extends java.lang.Object

  This class provides functionality to convert between GSON data structures.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>` | `getMapFromJsonArray(com.google.gson.JsonArray array)` Given a json array, this method will return the map
    `static java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>` | `getMapFromString(java.lang.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 java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement> getMapFromString(java.lang.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 java.util.Map.Entry<java.lang.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

Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.