Geert
05/22/2024, 9:02 PMval name: Optional<JsonElement, String> = JsonPath.select("name").string
name.set(JsonObject(emptyMap()), “bla”)
Since this is an optic Optional, this is as expected. From the optics documentation: To modify the value (only if present), use set and modify.
But is there no other way to do this? It seems very useful.