8 Dec
2019
8 Dec
'19
7:38 p.m.
Robert Ramey wrote:
What is the benefit of a "JSON archive" that is not achieved with other archive types?
For my purposes - nothing. The text version is just fine.
There is nothing inherently preventing the serialization library from serving the additional use case that you consider off-limits. Your only concern is serializing a C++ structure to a mostly unspecified format and then reading it back, but there's also a scenario where you have an existing and specified format to which you tailor your C++ structures so that serializing them produces the specified format, and deserializing them reads it. This is admittedly somewhat complicated by the - largely opaque - metadata the library inserts, but it's doable.