forked from zemirco/json2csv
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fancy fields option support, zemirco#78
{ fields: [ // Support label -> simple path { label: 'some label', value: 'path.to.something' }, // Support label -> derived value { label: 'some label', // Supporting duplicate labels value: function(row) { return row.path1 + row.path2; } }, // Support pathname -> pathvalue (label optional, keeps backwards compatibility) 'simplepath' 'path.to.value' ] }
- Loading branch information
azhang
committed
Oct 8, 2015
1 parent
b127e85
commit 07b2fd3
Showing
4 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"PATH1","PATH1+PATH2","NEST1","bird.nest2" | ||
"hello ","hello world!","chirp","cheep" | ||
"good ","good bye!","meep","meep" |
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
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