Using Sitecore 9.0.1 and DEF 2.0.1, to process JSON from an API. This works well until I have child entities in the json.
E.g.
{
"name": "XXX",
"short_description": null,
"description": null,
"type": "destination",
"childobject": [
{
"id": "1",
"name": "YYY",
"type": "AAA"
},
{
"id" : "2"
"name": "FFF",
"type": "ASSSAA"
}
]
}
My processor adds the parent object to IterableDataSettings with just the one row for the parent object. But how do I process childobjects ? It would seem they need to be added to a seperate IterableData set and pipeline but is that even possible in code?
My issues may stem from using a generic processor (ReadJsonDetailApiProcessor) that knows nothing about the "childobjects".
When I create an accessor for childobjects, could I use a custom Value Reader implementation ? But then again it would need to use a seperate pipeline
As you can tell, Im lacking clarity on how to do this at the moment