You'll probably want to go more like this:
{
"name": "objectDetails",
"type": {
"type": "array",
"items": {
"name": "AdditionalInfoRecord",
"type": "record",
"fields": [
{ "name": "name", "type": "string" },
{ "name": "value", "type": "string" }
The problem is with the XML Reader converting xml tags and field contents
at the same time.
I tried to use the example: Tags with Attributes from the XML Reader
additional details help page:
Hello.
What you can do, is to write the expected JSON.
Then do a process with convert record, with a JSON tree reader and a
writer. On the writer, specify that you want to write the schema in
property.
Like this, yo uwil have the wanted schema.
Etienne
Le mer. 28 juil. 2021 à 14:51, Jens M.