When I save with json everything is ok in the file, but when I load the loaded object is not correct.
file=open("hello", "w")
a={'name':'jason', 'age':73, 'grade':{ 'computers':97, 'physics':95, 'math':89} }
json.dump(a, file)
As I said in the file it's ok but when I load you can see a problem.
file:
" {"age": 73, "grade": {"computers": 97, "physics": 95, "math": 89}, "name": "jason"} "
Now the load:
b=json.load(file)
print b
output:
{u"age": 73, u"grade": {u"computers": 97, u"physics": 95, u"math": 89}, u"name": u"jason"}
You can clearly notice that before every string there is u. It's not effecting the code but I don't like it there..
Why is this happening?