Working upload with JSON