John has taken a shot at listing the most relevant browsers of 2009:
- IE 7
- IE 6
- Firefox 3
- Safari 3
- Opera 9.5
I think that Firefox 3 and Safari 3 may end up tieing, and if you frame it as rendering engines, Webkit will probably beat Gecko as it is also being used by iPhone, AIR, Android, and Nokia (they use Gecko too).
And, what about IE 8?
John is at it again, writing a piece on recent news surrounding JSON.
He links to an updated library by Douglas Crockford, PLAIN TEXT
JAVASCRIPT:
-
-
JSON.stringify({name: “John”, location: “Boston”});
-
// => "{’name’:'John’,'location’:'Boston’}"
-
JSON.parse(“{’name’:'John’,'location’:'Boston’}”);
-
// => {name: "John", location: "Boston"}
-
It also turns out that Mozilla implemented this functionality in the browser (time for a wrapper):
JAVASCRIPT:
-
-
var nativeJSON = Components.classes[“@mozilla.org/dom/json;1″]
-
.createInstance(Components.interfaces.nsIJSON);
-
nativeJSON.encode({name: “John”, location: “Boston”});
-
// => "{’name’:'John’,'location’:'Boston’}"
-
nativeJSON.decode(“{’name’:'John’,'location’:'Boston’}”);
-
// => {name: "John", location: "Boston"}
-
And in conclusion:
The final, and most important, step is being worked on right now - a way to access native JSON encoding and decoding from web pages. How it’ll be accessible is up to some debate (as having its naming conflict with an existing object would be a really bad thing). Regardless, there should be something within the browser by the time the Firefox 3 betas wrap-up.