Introduce the JSON uploader
Code copied from webkit