Json object is printed in strange format in Python -


so request steam page responds json:

{"success":true,"lowest_price":"$2.23","volume":"2,842","median_price":"$2.24"}

my objective transform dictionary in python, when return json object in function this:

{u'volume': u'2,842', u'median_price': u'2,02€ ', u'lowest_price': u'1,99€ ', u'success': true} (notice u').

what can eliminate u's?

you're seeing python letting know strings you're printing unicode strings. unless output you're seeing matters (e.g., it's input else), can disregard leading 'u' character until run issues unicode output.

there litany of stack overflow questions address this.

and lot more....


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -