3 ms·
The repetition of the keys seems like the sore point here. I could see a specialized form of JSON using jagged arrays {"Header": ["Name", "Street Address"
by Pxtl 5y ago
The repetition of the keys seems like the sore point here.
I could see a specialized form of JSON using jagged arrays
{"Header": ["Name", "Street Address", "City"]
"Body": [
["Alice", "123 Fake St", "Faketon"],
["Bob", "987 Any Pl", "Anytown"],
]}
in that way the keys aren't repeated. It wouldn't be coherent useful JS objects when deserialized, but it would be trivial to convert js table object into a true array of Javascript objects.
- noitpmeder 5y agoNot great because you can't just append records without modifying the entire "body". Better to use JSONL!