Closed
Bug 587497
Opened 16 years ago
Closed 16 years ago
invalid json used to generate community map
Categories
(www.mozilla.org :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: fuzzyfox, Assigned: fuzzyfox)
References
()
Details
Attachments
(2 files)
|
35.33 KB,
patch
|
Details | Diff | Splinter Review | |
|
62.44 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Build Identifier: 15th August, 2010 @ 9:55pm GMT
invalid json used to generate community map, comma where there should be none
Reproducible: Always
Steps to Reproduce:
just visit http://www.mozilla.org/script/1.0/universe/data.json
Actual Results:
there is a comma at the end of line 47 when there should be none
Expected Results:
no comma at the end of line 47
spotted while working on a widget version of the map
Comment 2•16 years ago
|
||
Maybe I'm using the JSONLint validator incorrectly, but just removing that comma doesn't make the file valid. Could you attach a patch of what the valid file should look like with this error fixed?
| Assignee | ||
Comment 3•16 years ago
|
||
Comment 4•16 years ago
|
||
I think you're using JSONLint incorrectly. This is William's file as a patch.
Attachment #468160 -
Flags: review?(david)
Comment 5•16 years ago
|
||
The patch in comment #4 is big and covers changes to most of the json file, but the initial comment in the bug mentions just a comma on one line. Has the scope of this bug changed or are most of the lines marked for change in the patch just formatting changes and not content changes?
| Assignee | ||
Comment 6•16 years ago
|
||
the patch actually only incudes the removal of the comma, however jsonlint has a nice way of formatting any json you enter into it, so most, if not all, except the removal of the comma are formatting changes that actually have no effect on the validity.
The patch is just the c&p from json lint after removing the comma.
sorry for the apparent large change :S
Comment 7•16 years ago
|
||
OK, fix checked in for line 47. Please verify things are still working (should take a bit to show up live).
http://viewvc.svn.mozilla.org/vc?view=revision&revision=72770
Re comment #4, I was using JSONLint incorrectly. I realize now I had read the line numbers wrong and had tried removing the comma on the line below this one.
Interestingly, when I had invalid JSON previously the map would stop working in Safari and Chrome (Firefox seemed to handle some JSON errors in the file) but it worked fine in all browsers with this error.
Comment 8•16 years ago
|
||
JSONLint and Python say this is fixed. William, could you verify?
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 9•16 years ago
|
||
I can indeed verify. It looks good to me and json lint agrees. How to close a bug? just leave it now marked fixed?
Comment 10•16 years ago
|
||
I already marked the bug as fixed, but an independent pair of eyes is expected before marking it as verified. Thanks for your help!
Assignee: nobody → fuzzyfox0
Status: RESOLVED → VERIFIED
Updated•15 years ago
|
Attachment #468160 -
Flags: review?(david)
Updated•14 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•