My coworker recently introduced me to one of the most blatantly bad behaviors in web browser history. He introduced it thus: Out[1]: simplejson.dumps({'foo': '<script>alert(document.cookie);</script>'}) Out[2]: '{"foo": "<script>alert(document.cookie);</script>"}' The thing is, that there is nothing wrong with what simplejson is doing. The problem is that this little piece of json is not h[...]
IE, JSON, and the script tag
jsonschema 0.2 alpha
I just released a new version of jsonschema 0.2 alpha over at http://code.google.com/p/jsonschema The source can be downloaded here: jsonschema-0.2a.tar.gz The documentation can be found here: jsonschema (version 0.2a) documentation The new release includes the following notable changes. * The additionalProperties attribute is now validated. * Using schemas in the type attribute now w[...]
jsonschema mentioned on json.com
Kris Zyp (the author of the JSONSchema proposal) mentioned jsonschema on his blog at json.com. Thanks Kris!!
JSON Schema Validator 0.1a for Python
I just released the first version for a project that I've been working on since the Python Onsen. It's a validator for JSON Schema written in Python. It's based on the JSON Schema Proposal Second Draft. The source can be downloaded here: jsonschema-0.1a.tar.gz The source is on Bitbucket JSON Schema's purpose is to allow validation of JSON documents much like XML Schema, DTD. You can use it[...]
Python Onsen
This weekend I went to the Python Onsen (Japanese) organized by Voluntas. Python Onsen is an event where people who like or are interested in python get together at a Japanese Ryokan Onsen and program/mingle/study together. The event started Friday but I had to work so I joined everyone yesterday. If you aren't familiar with the Ryokan experience check out the Ryokan link. Essentially you hav[...]
