Skip to content

Instantly share code, notes, and snippets.

@anburocky3
Last active April 13, 2023 18:17
Show Gist options
  • Save anburocky3/6e1b5186b699c29a6318cc5bb294d154 to your computer and use it in GitHub Desktop.
Save anburocky3/6e1b5186b699c29a6318cc5bb294d154 to your computer and use it in GitHub Desktop.
Convert data into json response from devtools
// 1. Store the object as global
// 2. It will generate the json as you wish. Copy and start hacking.
[...temp1].map((i, index) => { return { id: index+1, href: i.children[0].href, name: i.children[0].textContent} })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment