We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66fa8e commit 7026ad7Copy full SHA for 7026ad7
src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper25.java
@@ -74,8 +74,8 @@ private static JsonValue convertToJsonValue(JsonNode jsonNode) {
74
switch (jsonNode.getNodeType()) {
75
case OBJECT:
76
JsonObject jsonObject = Json.createObject();
77
- JsonObject source = (JsonObject)jsonNode;
78
- for (String key : source.keys()) {
+ ObjectNode source = (ObjectNode) jsonNode;
+ for (String key : source.propertyNames()) {
79
jsonObject.put(key, convertToJsonValue(source.get(key)));
80
}
81
return jsonObject;
0 commit comments