mr-data-converter icon indicating copy to clipboard operation
mr-data-converter copied to clipboard

Hierarchical JSON-data?

Open haraldgroven opened this issue 12 years ago • 3 comments

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"
         }
      }
   }
]

haraldgroven avatar Aug 13 '12 11:08 haraldgroven

+1

paivaric avatar Jun 27 '13 21:06 paivaric

Do we have any update on this ?

SelvaD avatar Mar 26 '14 13:03 SelvaD

Might be better to keep this lib simple, & use an external script like z5h/json.pivot or a Lo-Dash|Underscore zip script?

tomByrer avatar Apr 13 '14 23:04 tomByrer