3 ms·
How would you represent CSV in JSON?
by GoblinSlayer 6y ago
How would you represent CSV in JSON?
- krapp 6y agoAn array of maps - each map is a row, each key a column.
- petre 6y agoOr an array of arrays with a TOC containing the keys to index mapping. Keeps the column order and it's more compact because it omits the keys in the data.
- hinkley 6y agoI meant the specific case of someone trying to stick three values into an attribute but the other responder covered the general case. If you need three values use an array (or in xml, child element)