Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

decode encoded JSON result in python

I have JSON result

{"sUrlRedirect":"http://dez.loc/registration","sMsgTitle":null,"sMsg":"\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u0435\u043c! \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e","bStateError":false}

How i can decode it in python. Results must be such like this

{"sUrlRedirect":"http://dez.loc/registration","sMsgTitle":null,"sMsg":"Поздравляем! Регистрация прошла успешно","bStateError":false}

Thanks...

UPD

Can i do this without using json module?

Answer*

Draft saved
Draft discarded
Cancel
2
  • Can i do this without using json module? Commented May 2, 2013 at 19:37
  • If you are willing to write your own parser...I can't think of a reason why you should though. Commented May 2, 2013 at 19:39

lang-py

AltStyle によって変換されたページ (->オリジナル) /