Copy maps and lists when creating JsonObject/JsonArray