reintroduce hack for invalid template OO json

This commit is contained in:
Grahame Grieve 2022-12-16 11:27:48 +11:00
parent 8afc08b6aa
commit bd85546820
1 changed files with 3 additions and 1 deletions

View File

@ -23991,7 +23991,9 @@ public class JsonParser extends JsonParserBase {
if (json.has("issue")) {
JsonArray array = getJArray(json, "issue");
for (int i = 0; i < array.size(); i++) {
res.getIssue().add(parseOperationOutcomeIssueComponent(array.get(i).getAsJsonObject()));
if (array.get(i).isJsonObject()) {
res.getIssue().add(parseOperationOutcomeIssueComponent(array.get(i).getAsJsonObject()));
}
}
};
}