News for hackers. Stuff that matters.
Re:What's New in Python 3.12 by graton on Wednesday October 18, 2023 @02:43PM (#37932916)
For JSON there is the `jmespath` library which might help.

https://github.com/jmespath/jmespath.py

    print(jmespath.search(
        expression="some.deep.nested.value",
        data={"some": {"deep": {"nested": {"value": 2}}}},
    ))
    prints 2

    print(jmespath.search(
        expression="some.deep.nested.value2",
        data={"some": {"deep": {"nested": {"value": 2}}}},
    ))
    prints None

There are no comments on this comment yet.