Re:The Pretty JSON Revolution
by remram on Tuesday February 23, 2021 @12:39PM
(#26240207)
You should definitely optimize your data storage for the kind of operations you're going to do on them. However you're taking about the data transmission format here!
Surely you wouldn't think of sending a piece of JSON over the wire with both name:color and rgb:color, regardless of whether that is what the recipient wants to operate on. You just have to let it unmarshall the data into whatever form it needs.
Surely you wouldn't think of sending a piece of JSON over the wire with both name:color and rgb:color, regardless of whether that is what the recipient wants to operate on. You just have to let it unmarshall the data into whatever form it needs.