In the end I decided to use JSONpath-ng instead, hoping for simpler / more understandable code. In the end it turned out to be not that much better that way, just a little bit.
The Umap.py file is a bit more compact now, but that is mostly due to moving duplicate code into an extra function, which would also have been possible using the old approach.
In the end I left the JSONpath-ng approach in, it works and is minimally more readble (I hope), but looking back it was not really that much worth the effort ...
In the end I decided to use JSONpath-ng instead, hoping for simpler / more understandable code. In the end it turned out to be not that much better that way, just a little bit.
The Umap.py file is a bit more compact now, but that is mostly due to moving duplicate code into an extra function, which would also have been possible using the old approach.
In the end I left the JSONpath-ng approach in, it works and is minimally more readble (I hope), but looking back it was not really that much worth the effort ...