@naeem For a sensible answer, I need to know more information. Which JSON file is it and what is it for?
JSON file is easy to create, just click "Write to file", for example, with the name "my_file.json". You can find the content (syntax) of JSON here: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON
Maybe not the best way to do it but you can scrape all possible urls on the page and then add all to a new list then you can take a random line from the list and click it. That would 100% work.