Skip to main content

How to convert excel to nested array

need help converting an Excel file to a nested array

from this:

to something like this

   {
    'a': [{
        'aa': [
            'aaa',
            'aab',
            'aac'
        ],
        'ab': [
            'aba',
            'abc',
            'abd'
        ]
    }],
    'b': [{
        'ba': [
            'baa'
        ],
        'bb': [
            'bba',
            'bbb'
        ]
    }]
  }

trying to convert a large amount of data to this format, thank you

Via Active questions tagged javascript - Stack Overflow https://ift.tt/wb5UgC7

Comments