boostorg / boostorg/json

Backwards compatibility? (new structure definitions but old json serialization)

Aperta
#997 17 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
479
Fork
110
Merge medio
10g 3h
PR unite (30g)
5

Descrizione

What is the best way to achieve backward compatibility with boost json? My data structures has changed, but I still need to interact with json data generated by previous versions of my structs. What is the best way to achieve this? Any examples? Simply trying to invoke `boost::json::value_to` will throw an exception.

I'm using boost json and boost describe version 1.83.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.