CSV to JSON
A search for shortest vimissh way to convert CSV to JSON.
Start file
Year,Make,Model,Length
1997,Ford,E350,2.34
2000,Mercury,Cougar,2.38
End file
[
{
"Year": "1997",
"Make": "Ford",
"Model": "E350",
"Length": "2.34"
},
{
"Year": "2000",
"Make": "Mercury",
"Model": "Cougar",
"Length": "2.38"
}
]
View Diff
1,3c1,14
< Year,Make,Model,Length
< 1997,Ford,E350,2.34
< 2000,Mercury,Cougar,2.38
---
> [
> {
> "Year": "1997",
> "Make": "Ford",
> "Model": "E350",
> "Length": "2.34"
> },
> {
> "Year": "2000",
> "Make": "Mercury",
> "Model": "Cougar",
> "Length": "2.38"
> }
> ]
Solutions by @rubymood:
Unlock 1 remaining solutions by signing in and submitting your own entry