json parse r4

This commit is contained in:
Oliver Egger 2020-05-14 14:25:05 +02:00
parent d0ee44dfa8
commit 8d59817d26
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ public class JsonParser extends ParserBase {
}
public void parseChildItem(String path, JsonObject object, Element context, Set<String> processed, Property property) {
if (property.isChoice()) {
if (property.isChoice() || property.getDefinition().getPath().endsWith("data[x]")) {
for (TypeRefComponent type : property.getDefinition().getType()) {
String eName = property.getName().substring(0, property.getName().length()-3) + Utilities.capitalize(type.getWorkingCode());
if (!isPrimitive(type.getWorkingCode()) && object.has(eName)) {