Updated method to now PUT JSON data to the web service.