Closed
Bug 1284488
Opened 8 years ago
Closed 5 years ago
Json View / Response Tab should print values next to JSON tree
Categories
(DevTools :: Netmonitor, enhancement, P2)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: nachtigall, Unassigned)
Details
Attachments
(3 files)
See the attached screenshot. I had a long JSON and needed to find an *empty* Array in there. In the end I had to click through the whole JSON tree to find it. Instead of just printing "Array" or "Object" a preview of the actual JSON content should be printed right to each JSON node. (Also the shorter notations of [] and {} but be easier to read than "Array" and "Object") This should work for the JSON Viewer (if enabled in about:config devtools.jsonview.enabled) when I open in a new tab. And also for the "Response" tab of the Network Monitor. Chrome does it a bit better (again, see screenshot), but still has room for improvements: - The tree annotations (e.g. keys, values, number, string, parentheses) should be syntax hightlighted in the same way the JS Debugger does - The annotations line is quite short. There's lots of space not used on the right hand side. I'm not sure, but this might be a candidate for [good first bug][lang=js] so it turns up as a starter bug on http://firefox-dev.tools/. Doesn't look too complicated to me.
Comment 1•8 years ago
|
||
I think these are great ideas! Settting p2 since nobody is working on this now. Honza
Severity: normal → enhancement
Priority: -- → P2
Comment 3•7 years ago
|
||
I don't think we can close it yet. At least, I still need to click once to see that an array (or an object) is empty. See the attached screenshot, by default `myarray` and `myobj` doesn't show any value. It should be rendered like as follows by default: myarray: [] myobj: {} Honza
Flags: needinfo?(odvarko)
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 4•5 years ago
|
||
Hi @honza,
I think that now we do show if an array or an object is empty or not.
In the screenshot above the array, b
is empty and is shown as []
same for object e
(shown as {}
).
Flags: needinfo?(odvarko)
Comment 5•5 years ago
|
||
Yep, this can be closed.
Thanks for the note!
Honza
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(odvarko)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•