I'm trying to parse a json response data from youtube api but i keep getting an error.
Here is the snippet where it choking:
data = json.loads("""{ "entry":{ "etag":"W/"A0UGRK47eCp7I9B9WiRrYU0."" } }""")
..and this happens:
JSONDecodeError: Expecting , delimiter: line 1 column 23 (char 23)
I've confirmed that it's valid json and I have no control over the formatting of it so how can I get past this error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…