Class JsonObjectUtils


  • public class JsonObjectUtils
    extends java.lang.Object

    Utility class providing handy methods to deal with JsonObject objects.

    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.MultiMap jsonObjectToMultiMap​(io.vertx.core.json.JsonObject jsonObject)
      Convert a JsonObject to a MultiMap.
      static io.vertx.core.json.JsonObject multiMapToJsonObject​(io.vertx.core.MultiMap map)
      Convert a MultiMap to a JsonObject.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • multiMapToJsonObject

        public static io.vertx.core.json.JsonObject multiMapToJsonObject​(io.vertx.core.MultiMap map)
        Convert a MultiMap to a JsonObject. Returns an empty JsonObject when null is 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 a JsonObject to a MultiMap. Returns an empty MultiMap when null is provided.
        Parameters:
        jsonObject - the JsonObject to convert to a Multimap
        Returns:
        a MultiMap containing the entries from the JsonObject