Currently, I have a tool where I can easily generate integration tests by capturing a JSON dump of the current state of my system. This has been really useful, but it's been a major pain to keep that data updated as the internal state representation evolves.
Is there any tool which can handle this kind of behavior in Rust? It would definitely only need to handle a small subset of possible data types, even just doing vectors, structs, strings, and numbers would be 95% of the value proposition.
Failing that, are there some other strategies I could think about to reduce the pain of keeping my test data updated?