Return json for ajax file upload.