Last active
April 13, 2023 18:17
-
-
Save anburocky3/6e1b5186b699c29a6318cc5bb294d154 to your computer and use it in GitHub Desktop.
Convert data into json response from devtools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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