JSON and Firefox sessionstore.js

John Machin sjmachin at lexicon.net
Thu Apr 23 05:45:44 CEST 2009

On Apr 23, 12:16 pm, Steven D'Aprano
<ste... at REMOVE.THIS.cybersource.com.au> wrote:
> The Mozilla knowledge base claims that sessionstore.js is JSON:
> http://kb.mozillazine.org/Sessionstore.js

The claim is incorrect.

> So does this tutorial:
> https://developer.mozilla.org/En/Firefox_addons_developer_guide/
> Let's_build_a_Firefox_extension

The claim is incorrect.

> but Some Random Guy On The Internet claims it isn't:

Uche Ogbuji is scarcely "Some Random Guy On The Internet".

Moreover, his claim is correct.

> http://broadcast.oreilly.com/2009/01/recovering-text-areas-from-fir.html

> I'm leaning towards this being a bug in the json module. Unless somebody
> can point me at a credible source that sessionstore.js isn't JSON,

http://www.json.org/ ... check the syntax. No mention of parentheses
as being special. No mention of unquoted property names.

> I will
> report this as a bug.

I suggest that you restrict your report to the kludgy double-exception
that you observed with Python 3.X. Python 2.6.2 produces an
unexceptional exception :-)


More information about the Python-list mailing list