Looking for an efficient way to read a dict-type line containing unicode keys/values which themselves contain one or more single quotes. For example, consider a file with the following single line of text:
{u'price': 180.45, u'item': u'Black Jacket Men's Small'}
What is the most efficient way to read this line into a python dict object? I've gotten around it by using regex replace but want to make sure there's not some simpler tool for this.
Edit: This is very different from this question about lists because it deals with single-quote unicode literals that contain problematic single quotes inside the string values.