Class JsonObjectUtils


  • public class JsonObjectUtils
    extends Object

    Utility class providing handy methods to deal with JsonObject objects.

    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • 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