5 ms·
Does it solve the problem of repeating set of keys in an object array, eg. when representing a table? I don't think using a dictionary of key values is the way
by fshafique 2y ago
Does it solve the problem of repeating set of keys in an object array, eg. when representing a table?
I don't think using a dictionary of key values is the way to go here. I think there should be a dedicated "table" type, where the column keys are only defined once, and not repeated for every single row.
- feverzsj 2y agoYou can just use array of array like most scientific applications do.
- fshafique 2y agoI can do that with JSON too. I was hoping MessagePack would have built-in functionality to do it.
- ubutler 2y agoMessagePack can encode rows as well and then you just need to manage linking the keys during deserialization. In fact, it can encode arbitrary binary without needing base64 like JSON.