adds resource service to get json data