Created
April 2, 2014 22:20
-
-
Save seralf/9944409 to your computer and use it in GitHub Desktop.
Idea on how to render data to CSV from JSON, using mustache syntax: http://mustache.github.io/mustache.5.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"items": [ | |
{"name": "nome", "surname": "cognome", "city": "Rome", "header": true}, | |
{"name": "Mario", "surname": "Rossi", "city": "Rome"}, | |
{"name": "Paperino", "surname": "Paolino", "city": "Paperopoli"} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{#header}} | |
{{foaf:name}};{{foaf:surname}};{{geo:city}} | |
{{/header}} | |
{{#items}} | |
{{name}};{{surname}};{{city}} | |
{{/items}} |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nome;cognome;Rome | |
Mario;Rossi;Rome | |
Paperino;Paolino;Paperopoli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment