OiO.lk Blog javascript Copy response from Chrome Dev tools network tab
javascript

Copy response from Chrome Dev tools network tab


I am working with Typescript React.I want to copy paste a response into my react code as a mock-file.But when I copy from Network tab, the JSON response’s keys are in double quotes.I want to convert this JSON response to a pure JavaScript object so that folding and unfolding works in my vs code.

When I copy this to vs code into my mock.ts file

I want the JSON in below format.(The double quotes of keys are removed)

How can I do this without manually editing/removing the double quotes?



You need to sign in to view this answers

Exit mobile version