def Resolver(obj, path, full = False): m = re.search('#/(.*)/(.*)', path) x = None if full: b = obj[m.group(1)] x = b[m.group(2)] else: x = m.group(2) return x