Hacker News new | ask | show | jobs
by fshafique 519 days 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.

2 comments

MessagePack 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.
You can just use array of array like most scientific applications do.
I can do that with JSON too. I was hoping MessagePack would have built-in functionality to do it.