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

Copied JSON does not validate if values include escaped quotes #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create some simple JSON, eg 
{"paragraph": "<p class=\"indented\">Hello World</p>"}

2. View it in JSONovich
3. Copy the prettyfied JSON and validate in validator.

What is the expected output? What do you see instead?
Expected - Pass. Actual: Fail

What version of the product are you using? On what operating system?
JSONovich 1.9.2 on Firefox 7.0.1 on OS X 10.6.8

Please provide any additional information below.
Sample PHP code to test this:

---- start ----
$test = array('paragraph'=>'<p class="indented">Hello World</p>');

header("Content-type: application/json");
echo json_encode($test);
---- end ----

Tested using JSONLint.com

Original issue reported on code.google.com by jrouff...@gmail.com on 3 Nov 2011 at 3:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r186.

Original comment by W.Elwoo...@gmail.com on 4 Nov 2011 at 2:10

GoogleCodeExporter commented 9 years ago
Thanks for the report, I've released 1.9.3 to hotfix this. You can find it 
linked from Michael's blog or from the version history page at AMO until it 
completes review.

Original comment by W.Elwoo...@gmail.com on 4 Nov 2011 at 3:04

GoogleCodeExporter commented 9 years ago
Can confirm that this fix in 1.9.3 is working for me on Firefox 8.0.1 on OS X. 
Thank you.

Original comment by jrouff...@gmail.com on 2 Dec 2011 at 10:32