JSON and Firefox sessionstore.js

I V ivlenin at gmail.com
Thu Apr 23 06:08:35 CEST 2009


On Thu, 23 Apr 2009 02:16:07 +0000, Steven D'Aprano wrote:
> 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, I
> will report this as a bug.

I'm just another random guy on the internet, but I'm pretty sure 
sessionstore.js isn't strictly correct JSON - nothing in the spec at 
http://www.json.org/ suggests that JSON data can start with an open 
parenthesis, or that member names can be unquoted strings, but 
sessionstore.js has both of these features. It might well be useful for 
the json module to accept these slightly non-conforming files, though.

For something with at least a vague air of credibility to it, somebody 
who appears to be a Mozilla developer comments on their bug tracker, that 
sessionstore.js isn't "pure JSON" (though he only identifies the 
parantheses, which are much easier to fix, as being a problem):

https://bugzilla.mozilla.org/show_bug.cgi?id=407110#c2



More information about the Python-list mailing list