Fixing the post request with JSON