Enhancing the new Filtering with a wildcard
Created by: joysfera
The cool filtering while deserializing introduced in v6.15 is great but it could be even better if there was a possibility to specify a wildcard for parents of nested documents if you need to filter somewhere deeper in the tree.
Imagine JSON document like this:
{
"somekey": { "name": "some uninteresting name", "value": 2.718281828 },
"otherkey": { "name": "guess what the value is", "value": 3.1415926535 },
...
"xyzkey": { "name": "ran out of interesting constants", "value": 1000 }
}
And I'd need to filter out the names (because they're long and consume a lot of precious RAM) and preserve just the key names (that unfortunately hold some important information) and the values inside of their objects (because the values are what matters).
So the Filtering document would need to look kind of like this:
{ "*": { "value": true } }
Would this be possible to implement easily and cleanly, please? Or any better idea?
Thank you!