@Test
    public void nestedObjectAndArray() {
        String str = "{\n" +
                "    \"config\": {\n" +
                "        \"port\": \"victoria\",\n" +
                "        \"favourite\": {\n" +
                "            \"food\": \"kari koko\",\n" +
                "            \"drink\": \"kalou\"\n" +
                "        },\n" +
                "        \"places\": [\"anse boileau\", \"anse royale\"]\n" +
                "    }\n" +
                "}";

        JsonObject jso = new JsonObject(str);
        VertxEngineConfig vxConf = new VertxEngineConfig(jso);


        Map<String, String> expected = Map.of(
                "config.port", "victoria",
                "config.favourite.food", "kari koko",
                "config.favourite.drink", "kalou",
                "config.places", "anse boileau,anse royale"
        );

        Map<String, String> actual = new LinkedHashMap<>();
        vxConf.jsonMapToProperties("", jso, actual);
        Assert.assertEquals(expected, actual);
    }
Test conversion of JSON to properties map

@author Marc Savy {@literal <msavy@redhat.com>}
gateway/platforms/vertx3/vertx3/src/test/java/io/apiman/gateway/platforms/vertx3/common/config/JsonMapToPropertiesTest.java