refactored GetLocations method to get validated json back