I'm doing a curl request that returns something like this :
b'{\n "output": {\n id": "11-222-33-44-5abcd6efg"\n }\n}\n'
then I'm doing
id=re.sub("\{.*\: \"", "", output)
id=re.sub("\" *\}.*", "", id)
but i get : TypeError: can't use a string pattern on a bytes-like object
I'd like to convert the output into string maybe it would work then, or if you have any other idea, my goal is to get that id. Doing this in Python