October 21, 2024
Chicago 12, Melborne City, USA
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.
Refer the response below

When I copy this to vs code into my mock.ts file
enter image description here

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

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



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video