New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 675276 link

Starred by 4 users

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

FEAT REQ Network tab > json response > preview tab > right click option to copy part of object as json

Reported by eng.a7ma...@gmail.com, Dec 16 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce the problem:
1. open a page with a large and complex json ajax request
2. open the devtools
3. open the network tab
4. click on that json response entry
5. open preview tab
6. dive into the object (assuming it contains arrays and nested objects)
7. right-click on some key inside

What is the expected behavior?
an option to copy this key content as valid json would be awesome and very useful for huge and complex responses

the response tab is useful if you want to copy ALL of the response but not just part of it

What went wrong?
no option yet :'(

Did this work before? N/A 

Chrome version: 55.0.2883.87  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0

I just found about the "copy property path" which is also awesome. but why log the result in the console, copy the property path, apply it the result

 
Components: -Platform>DevTools Platform>DevTools>Network
Labels: -Type-Bug Type-Feature
Owner: allada@chromium.org
Status: Assigned (was: Unconfirmed)
@allada what do you think about this feature request?
I think this could be extended to anywhere you're viewing JS properties - in the console, element properties, etc (or that might even be it). Currently, AFAIK, the quickest route to copy an object as JSON is to DIY it - get a reference in the console, call stringify, and copy the result. There are plenty of StackOverflow/SuperUser results detailing this technique.

If an object is "jsonable", it would be fantastic to include a "Copy as JSON" option in the context menu.

I'm not trying to commander this feature request, but I thought a comment here would be preferable to a new almost identical request. Let me know if I am wrong and I'll be happy to open a separate request!
billy you just nailed it.  I would love to see this 👍👍👍
Status: Archived (was: Assigned)
what does status:Archived mean?

Sign in to add a comment