public final class MultiMapConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.vertx.reactivex.core.MultiMap |
fromJsonObject(io.vertx.core.json.JsonObject json)
Converts JsonObject to MultiMap.
|
static io.vertx.core.json.JsonObject |
toJsonObject(io.vertx.reactivex.core.MultiMap multiMap)
Converts MultiMap to JsonObject
It expects the MultiMap key, contains List of String objects, so the result of conversion will look like below |
public static io.vertx.core.json.JsonObject toJsonObject(io.vertx.reactivex.core.MultiMap multiMap)
{
"mapKey1": ["val1", "val2"],
"mapKey2": ["val1"]
}
multiMap - - MultiMap to convertJsonObject with JsonArray under each object keypublic static io.vertx.reactivex.core.MultiMap fromJsonObject(io.vertx.core.json.JsonObject json)
json - - JsonObject to convertMultiMap created from JsonObjectCopyright © 2016–2020. All rights reserved.