Re:MessagePack: like JSON, but fast and small
by hombre_fatal on Wednesday March 11, 2020 @06:32AM
(#22544606)
Is that like saying it doesn't have a username type? How could you ever know this bit of data is a username if it doesn't have a username type?
[ Parent
| on HN ]
Re:MessagePack: like JSON, but fast and small
by lokedhs on Thursday March 12, 2020 @11:36AM
(#22557921)
I think there is a rather large difference between not having a username type vs. not having an integer type.
As it turns out, the only way you can reliably store an integer in JSON is to use a string field. This is incidentally also the correct way to store a username in JSON.