10 Sep
2020
10 Sep
'20
2:45 p.m.
Andrzej Krzemienski wrote:
1. The usage of `nullptr` for null values.
Half of the existing JSON libraries map null to nullptr, it's pretty well established and idiomatic at this point.
3. It is confusing for me to see member function serializer::read. I would think that the action that a serializer does is *write* rather than read. Am I missing something?
s.read( buf ) writes data to the buffer you supply, just like fread writes data to the buffer you supply. It's a bit disorienting initially, but does make sense. You read from the serializer.