4 ms·
Maybe I'm punching in the screw with only my hammer here, but what's wrong with combining block- and flow style in YAML? --- columns: [id, name, age] dat
by grandchild 9y ago
Maybe I'm punching in the screw with only my hammer here, but what's wrong with combining block- and flow style in YAML?
---
columns: [id, name, age]
data:
- [1, "Alice", 27]
- [2, "Bob", 26]
- [3, "Carol", 45]
- anderspitman 9y agoThis would certainly work as a storage format, but would require custom parsing. It would be nice to have a format that automatically expanded that into a sequence of maps.
- ddgflorida 9y agoAnd of course you can do that same format with JSON output - have a columns array and a data array.