Belphemur/vue-json-csv

Array in Data not working properly

MiltonBain opened this issue · 0 comments

I am passing an object into the data prop that has the following structure:

Data: [
{
  data1: 'value',
  data2: ''value',
  dataArray: [
    {
      subData1: 'value',
      subData2: 'value',
      subData3: 'value'
    },
    {
      subData1: 'value',
      subData2: 'value',
      subData3: 'value'
    },
    ...
  ]
},
{
  data1: 'value',
  data2: ''value',
  dataArray: [
    {
      subData1: 'value',
      subData2: 'value',
      subData3: 'value'
    },
    {
      subData1: 'value',
      subData2: 'value',
      subData3: 'value'
    },
    ...
  ]
},
...
]

Based on this, the "dataArray" does not get parsed correctly.
In the CSV file, depending how many objects are in that array, it will just display [object Object].

The issue #66 offers a solution, but I do not see how that solution will help.