mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Added 'CSV to JSON' and 'JSON to CSV' operations. Closes #277
This commit is contained in:
parent
42b956e402
commit
863bdffa84
5 changed files with 160 additions and 2 deletions
|
@ -573,6 +573,10 @@ class Utils {
|
|||
cell = "";
|
||||
lines.push(line);
|
||||
line = [];
|
||||
// Skip next byte if it is also a line delim (e.g. \r\n)
|
||||
if (lineDelims.indexOf(next) >= 0 && next !== b) {
|
||||
i++;
|
||||
}
|
||||
} else {
|
||||
cell += b;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue