Closed Bug 1604115 Opened 4 years ago Closed 4 years ago

Strings should be shown with quotes so the type is recognizable

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: nachtigall, Assigned: pranavpandey1998official)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(2 files, 2 obsolete files)

I have a project that enforces type checking (TypeScript, Flow). That is, when data comes from JSON a certain type like number or string is expected for the items in the json.

STR:

  1. Have a JSON with a number encoded as string type (this happens more often then you'd think), e.g.
{
  "numberAsNumberType": 1,
  "numberAsStringType": "1"
}
  1. Download via https://api.myjson.com/bins/l22e0
  2. Look at the Netmonitor, screenshot.

ER:
The string should be surrounded by quotes. The JSON Viewer does it right.

AR:
The string shows like a number what really puzzled me in my project. Of course the above is just a minimal example.

Thanks for the report!

@Nicolas, looks like we need to update/fix a rep?

Honza

Flags: needinfo?(nchevobbe)
Priority: -- → P3

Can I do it? :)

(In reply to Andres Ortega :cabezota from comment #4)

Can I do it? :)

Hello Andres!

I assigned the bug to you, thanks for offering help!
If you haven't yet, you should go through http://docs.firefox-dev.tools/getting-started/ to setup the work environment. Don't hesitate to ask any question

Assignee: nobody → adresortegao

(In reply to Andres Ortega :cabezota from comment #4)

Can I do it? :)

Hi Andres if you are not working on it can I give it a try :)

Sure, Pranav. You can do it. I haven't had the time

Attachment #9121232 - Attachment is obsolete: true

hi I have submitted a patch for this bug https://phabricator.services.mozilla.com/D60104

Attachment #9121234 - Attachment description: Bug 1604115   -added useQuoes prop to propertiesView and fixed bug in network response json viewer . honza → Bug 1604115 - added useQuoes prop to propertiesView and fixed bug in network response json viewer. r=honza

Hi ,
Sorry I have to submit a new patch I tried soo hard but couldn't find a way to add new commits to patch then I destroyed my branch by trying different things then, I also do not how to attach to a branch in phabricator.

Pranav

Attachment #9121234 - Attachment is obsolete: true
Attachment #9121720 - Attachment description: Bug 1604115  - added useQuoes prop to propertiesView and fixed bug in network response json viewer. r=honza → Bug 1604115 - added useQuotes prop to propertiesView and fixed bug in network response json viewer.

(In reply to Pranav pandey from comment #12)

Sorry I have to submit a new patch I tried soo hard but couldn't find a way to add new commits to patch then I destroyed my branch by trying different things then, I also do not how to attach to a branch in phabricator.

No problem.

Here is, what I usually do to update an existing patch/revision on phabricator

arc diff .^ --update DXXXX

DXXXX => revision number

Honza

the arc thing was not working for me I also asked it on slack then people said why are you using it .. I have switched to git now and using phlay it is working fine for me

Assignee: adresortegao → pranavpandey1998official
Status: NEW → ASSIGNED
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fb244ef46051
added useQuotes prop to propertiesView and fixed bug in network response json viewer. r=Honza
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: