How to get dependency url from build.zig.zon in build script (recursively)

This seems related:

also maybe take a look at the code for Zigistry: A registry for all Zig-lang packages and programs which is by the OP and likely uses an updated version to parse the dependencies of packages. (Haven’t looked into its current implementation)