add service function for getting json url