Skip to content

Commit d6f4a0e

Browse files
author
Hattinger04
committed
comment
1 parent 91e0770 commit d6f4a0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/io/github/Hattinger04/RestServices.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ public Object deserialize(Class<?> c, String json) {
2727
}
2828
}
2929

30+
/**
31+
* Convert JSON-String with multiple different classes to multiple objects
32+
* Convention: list the classes in an alphabetic sequence
33+
*
34+
* @param <T>
35+
* @param c
36+
* @param json
37+
* @return
38+
*/
3039
public <T> Object[] deserializeMany(Class<?> c[], String json) {
3140
try {
3241
JsonNode rootNode = objectMapper.readTree(json);

0 commit comments

Comments
 (0)