JSONovich / jsonovich

A webextension for Firefox. Pretty-prints JSON content in the browser for easy, unobtrusive viewing.
https://addons.mozilla.org/firefox/addon/jsonovich/
Mozilla Public License 2.0
7 stars 3 forks source link

generated HTML broken when JSON contains an empty object/array #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Navigate to a JSON file containing an empty object or array.
2. Observe broken output.

What is the expected output?
Pretty-printed JSON. (see expected.png)

What do you see instead?
The generated HTML is invalid. (see actual.png)

What version of the product are you using? On what operating system?
1.5, FF 3.6.6, Win 7 x64

Please provide any additional information below.
Test and fix attached. :)

Original issue reported on code.google.com by W.Elwoo...@gmail.com on 17 Jul 2010 at 5:59

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r43: http://code.google.com/p/jsonovich/source/detail?r=43

Thanks!

Original comment by michael.giarlo on 20 Jul 2010 at 8:56