I have some plain machine learnig data set in separate lines like this:
vhigh,vhigh,2,4,small,low,unacc
vhigh,vhigh,2,4,small,med,unacc
vhigh,vhigh,3,more,med,low,unacc
... 1700 more lines like above
I want to convert data into structure like this:
[
{
"buying": "vhigh",
"maint": "vhigh",
"doors": "2",
"persons": "2",
"lug_boot": "small",
"safety": "low",
"evaluation": "unacc"
},
{
"buying": "vhigh",
"maint": "vhigh",
"doors": "2",
"persons": "2",
"lug_boot": "small",
"safety": "med",
"evaluation": "unacc"
},
...
]
and save converted data into new file.json
#edit : Node.js runtime