Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35680

Re: I am facing an issue while decoding json string using json.loads

Newsgroups comp.lang.python
Date 2012-12-27 23:16 -0800
References <cb5ae6f8-5d77-416a-b77e-0eed8c44c1fd@googlegroups.com> <umlnd8lm3k20hbc656b59vabcfpmpahrue@4ax.com>
Message-ID <7a76db2f-d1af-4513-9f3f-03cd5b97e511@googlegroups.com> (permalink)
Subject Re: I am facing an issue while decoding json string using json.loads
From sajuptpm <sajuptpm@gmail.com>

Show all headers | View raw


Hi,

Fixed:
=====

urllib.unquote is messing up the JSON. Reverse the
order of unquote, and loads, i.e., do a json.loads on
the original string, and then urllib.unquote the components
that need unquote.

Thanks,

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

I am facing an issue while decoding json string using json.loads sajuptpm <sajuptpm@gmail.com> - 2012-12-25 23:14 -0800
  Re: I am facing an issue while decoding json string using json.loads alex23 <wuwei23@gmail.com> - 2012-12-26 03:35 -0800
  Re: I am facing an issue while decoding json string using json.loads Tim Roberts <timr@probo.com> - 2012-12-26 21:07 -0800
    Re: I am facing an issue while decoding json string using json.loads sajuptpm <sajuptpm@gmail.com> - 2012-12-27 23:16 -0800

csiph-web