The code in the library is actually pretty simple, but deals with many practical edge-cases (stepping into an array, handling missing values gracefully, etc.) that the above code doesn't.
My longer term intention is adding other useful json manipulation and search functions to the library.
I considered that approach but found the JSON returned by some third-party apis contained characters in keys (dashes, spaces, etc) which have special meanings in python so can't be used natively.
My longer term intention is adding other useful json manipulation and search functions to the library.