 
            
            
            
            
                22 Sep
                
                    2020
                
            
            
                22 Sep
                
                '20
                
            
            
            
        
    
                4:57 a.m.
            
        VinÃcius dos Santos Oliveira wrote:
In my job, we have our own in-house serialization framework. I guess that's what many others do as well in C++, but the requirements on the JSON library to be usable in serialization frameworks would be quite similar.
The easiest way to make a JSON input archive for Boost.Serialization is to use Boost.JSON and go through json::value. Boost.Serialization typically wants fields to appear in the same order they were written, but JSON allows arbitrary reordering. Reading a json::value first and then deserializing from that is much easier than deserializing directly from JSON. For output, it's easier to bypass json::value and write JSON directly.