Closed TobiasNx closed 2 years ago
The root cause seems to be the same as #378. Should be fixed by #392.
The result with the fix of #392:
{
"author" : [ {
"@type" : "Person",
"name" : "Katja Königstein-Lüdersdorff"
}, {
"@type" : "Person",
"name" : "Corinna Peters"
}, {
"@type" : "Person",
"name" : "Oleg Tjulenev"
}, {
"@type" : "Person",
"name" : "Claudia Vogeler"
} ]
}
Seems fine now ! Great.
With _elseNested
, entities are only output when an unhandled literal occurs. The issue was that then only the last (current) entity was taken into account. So, in this example, the outermost entity (author[]
) was dropped (regardless of the array marker). This is now fixed.
We have following FLUX:
the morph is:
The incoming JSON is e.g.:
It results in:
Without the morph it works:
With flux:
Result is:
The fault is due to _elseNested. With "_elseFlattened" we receive following result:
I assume there is a conflict with the [] as the sign for an array in combination with the nested transformation.