fixes bug when retrieving a service record; changes all service output to json