Fixed problem with uploading json to server