Package org.swisspush.gateleen.core.util
Class JsonObjectUtils
- java.lang.Object
-
- org.swisspush.gateleen.core.util.JsonObjectUtils
-
public class JsonObjectUtils extends Object
Utility class providing handy methods to deal with
JsonObjectobjects.- Author:
- https://github.com/mcweba [Marc-Andre Weber]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.vertx.core.MultiMapjsonObjectToMultiMap(io.vertx.core.json.JsonObject jsonObject)Convert aJsonObjectto aMultiMap.static io.vertx.core.json.JsonObjectmultiMapToJsonObject(io.vertx.core.MultiMap map)Convert aMultiMapto aJsonObject.
-
-
-
Method Detail
-
multiMapToJsonObject
public static io.vertx.core.json.JsonObject multiMapToJsonObject(io.vertx.core.MultiMap map)
Convert aMultiMapto aJsonObject. Returns an empty JsonObject whennullis provided.- Parameters:
map- the MultiMap to convert to a JsonObject- Returns:
- a JsonObject containing the entries from the MultiMap
-
jsonObjectToMultiMap
public static io.vertx.core.MultiMap jsonObjectToMultiMap(io.vertx.core.json.JsonObject jsonObject)
Convert aJsonObjectto aMultiMap. Returns an empty MultiMap whennullis provided.- Parameters:
jsonObject- the JsonObject to convert to a Multimap- Returns:
- a MultiMap containing the entries from the JsonObject
-
-