Synthoid / ExportSheetData

Add-on for Google Sheets that allows data to be exported as JSON or XML.
MIT License
237 stars 46 forks source link

Nested json objects with contents as array #86

Closed GabrielRodriguesS closed 5 years ago

GabrielRodriguesS commented 5 years ago

Scenario:

image Only check "Nested Elements" option and Current Sheet Only.

Result:

Only one element was converted: image

Expected:

image

How to fix it?

Synthoid commented 5 years ago

To export nested arrays you have to use specific formatting on the keys, otherwise the exported rows will keep overwriting each other. I recommend looking at the documentation for the Nested array prefix option and looking at the wiki page for nested elements in general. But just enabling the Nested array prefix option and adding the appropriate prefix to your sheet name should take care of the issue.

mikelga commented 5 years ago

Hi @GabrielRodriguesS I think that I have the same problem. Have you solve it?

GabrielRodriguesS commented 5 years ago

I put the matrix prefix and nothing. I told you how it was as soon as possible.

GabrielRodriguesS commented 5 years ago

Giving up, it was simpler to tweak the data using a programming language.