Improvement

This commit is contained in:
SessionHero01
2024-09-24 16:26:29 +10:00
parent 80e3e563ce
commit 8c1eb1550b
17 changed files with 959 additions and 489 deletions

View File

@@ -51,6 +51,10 @@ public class JsonUtil {
return objectMapper.readValue(serialized, clazz);
}
public static <T> T fromJson(JsonNode serialized, Class<T> clazz) throws IOException {
return objectMapper.treeToValue(serialized, clazz);
}
public static JsonNode fromJson(String serialized) throws IOException {
return objectMapper.readTree(serialized);
}