forI get a Json string as a body of a http response.
req = Request(url)
response = urlopen(req)
string = response.read().decode('utf-8')
json_obj = json.loads(string)
print(json_obj)
Every string in the json_obj is prepended by a 'u'.I want to get rid of all these 'u'. i understand that in python strings are encoded as unicode and thats what this u is representing, but i dont want it to be shown in my response, explicitly. How do i suppress this annoying 'u'.
I dont want to iterate through every value and remove 'u', as i am interested in entire response body. I am doing this for data collection, store the body in a file, pass this file to someone else to do some data extraction/analysis.