We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 172dc33 commit 551c1b3Copy full SHA for 551c1b3
src/main/java/com/kodedu/other/JsonHelper.java
@@ -7,7 +7,7 @@
7
public class JsonHelper {
8
public static JsonArray getJsonArrayOrEmpty(JsonObject jsonObject, String key) {
9
10
- if (jsonObject.containsKey(key) && jsonObject.getValueType() == JsonValue.ValueType.ARRAY) {
+ if (jsonObject.containsKey(key) && jsonObject.get(key).getValueType() == JsonValue.ValueType.ARRAY) {
11
return jsonObject.getJsonArray(key);
12
}
13
return JsonValue.EMPTY_JSON_ARRAY;
0 commit comments