serde-capture
Capture some part of a document during deserialisation, and store it serialised, instead of as a structure. This might use less memory.
This provides a:
... which you can embed in your structure:
... which should be smaller than Vec<Value>
, but with significantly
slower access.