3 ms·
This helps but repeating the keys on each line is still a pain.
by philwelch 5y ago
This helps but repeating the keys on each line is still a pain.
- masklinn 5y agoArrays are valid json values.
- philwelch 5y agoBut that would be a very irregular way to use JSON.
- masklinn 5y agoNot even remotely.
- philwelch 5y agoIt’s not irregular to represent a list of typed objects in JSON as an array of arrays in which the first array is the array of keys in the same order as the corresponding values? Is there a JSON serialization library that actually uses this pattern? I’m not asking to be argumentative, but I genuinely like the idea and would be pleasantly surprised to see it.