mr-data-converter
mr-data-converter copied to clipboard
Hierarchical JSON-data?
Feature request:
Is it possible to add Hierarchical JSON to list of formats?
example data:
fruit color taste
apple red sweet
apple red sour
apple yellow bitter
pear green sweet
pear green sour
desired output from Mr-Data-Converter:
[
{
"fruit":"apple",
"color":{
"red":{
"taste":"sweet",
"taste":"sour"
}
},
"color":{
"yellow":{
"taste":"bitter"
}
},
"fruit":"pear",
"color":{
"green":{
"taste":"sweet",
"taste":"sour"
}
}
}
]
+1
Do we have any update on this ?
Might be better to keep this lib simple, & use an external script like z5h/json.pivot or a Lo-Dash|Underscore zip script?