updated the service to use json only