3 ms·
Or you could serialise like this: { 'fields': ['a', 'b'], 'values': [ [1, 2], [5, true] ] }
by tomp 9y ago
Or you could serialise like this:
{
'fields': ['a', 'b'],
'values': [
[1, 2],
[5, true]
]
}
- Houshalter 9y agoI might be misunderstanding something here, why not just: { a: [1, 2], b: [5, true], } But this doesn't solve the problem if your data isn't a nice table and has deeply nested tree structures. Which is what JSON is for, otherwise people would have just stuck with CSV.