Preserving hierarchy when converting .csv file to xml or json
- by Simon Levinson
Hello
I have a question concerning translating data from a CSV into XML or JSON where it is essential to preserve the heirarchy of the data.
For example, if I have CSV data like this:
type,brand,country,quantity
apple,golden_delicious,english,1
apple,golden_delicious,french,2
apple,cox,,4
apple,braeburn,,1
banana,,carribean,6…