Closed inuyasha-660 closed 4 months ago
So let's say you have the URL
https://libraries.minecraft.net/ca/weblite/java-objc-bridge/1.1/java-objc-bridge-1.1.jar
Using the GJSON path
libraries.#(downloads.artifact.url="https://libraries.minecraft.net/ca/weblite/java-objc-bridge/1.1/java-objc-bridge-1.1.jar").downloads.artifact.path
Returns the artifact path:
"ca/weblite/java-objc-bridge/1.1/java-objc-bridge-1.1.jar"
It works fine, thanks for your help.
Sorry to bother you, I am not very good at English.
I hava a json like this
Now, I can get all the url, Is there a way to get the corresponding path based on the URL? I hava seen the README and tried a few ways, but it seem don't work.
Json: https://piston-meta.mojang.com/v1/packages/177e49d3233cb6eac42f0495c0a48e719870c2ae/1.21.json