How can I remove the Unicode u from a JSON item?

json, python, string, unicode

Solution

You have a list that's nested two levels deep. Try it like this to simply print 'hiya':

>>> import json
>>> stuff = '[["hiya"]]'
>>> js = json.loads(stuff)
>>> str(js[0][0])
'hiya'

Problem

``` >>> stuff = '[["hiya"]]' >>> js = json.loads(stuff) >>> js[0] [u'hiya'] >>> str(js[0]) "[u'hiya']" ``` It doesn't seem to go away. How can I print `hiya` on its own (without manually stripping the special characters away)?

Original source