<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/json-py/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/json-py/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 30 May 2017 12:03:22 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/json-py/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Doesn't handle unicode input</title><link>https://sourceforge.net/p/json-py/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the json "string" is unicode the parser fails. &lt;br/&gt;
Changing :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;        if type(key) is not types.StringType:
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;to         &lt;br/&gt;
            if type(key) is not types.StringType and type(key) is not types.UnicodeType:&lt;/p&gt;
&lt;p&gt;at line 213 sorts this out&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Rogerson</dc:creator><pubDate>Tue, 30 May 2017 12:03:22 -0000</pubDate><guid>https://sourceforge.net2aec053ab5d1637e340da3689fe68520e00d1db6</guid></item><item><title>Spaces and Tabs</title><link>https://sourceforge.net/p/json-py/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The package works beautifully but the readability is undermined by the mixture of spaces and tabs in the file...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.python.org/dev/peps/pep-0008/" rel="nofollow"&gt;http://www.python.org/dev/peps/pep-0008/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please fix! &lt;br /&gt;
:-D&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Pike</dc:creator><pubDate>Sat, 07 Feb 2009 13:34:26 -0000</pubDate><guid>https://sourceforge.netea6fabcc04b59fe5df196bbae9321c1a71db6001</guid></item><item><title>Tuple used as dict key</title><link>https://sourceforge.net/p/json-py/bugs/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;See for yourself&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; import pyjson&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; pyjson.write({(1,2) : "a"})&lt;br /&gt;
'{[1,2]:"a"}'&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; pyjson.read('{[1,2]:"a"}')&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt;
File "&amp;lt;pyshell#128&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;br /&gt;
pyjson.read('{[1,2]:"a"}')&lt;br /&gt;
File "C:\Python25\lib\pyjson.py", line 309, in read&lt;br /&gt;
return JsonReader().read(s)&lt;br /&gt;
File "C:\Python25\lib\pyjson.py", line 53, in read&lt;br /&gt;
result = self._read()&lt;br /&gt;
File "C:\Python25\lib\pyjson.py", line 62, in _read&lt;br /&gt;
return self._readObject()&lt;br /&gt;
File "C:\Python25\lib\pyjson.py", line 214, in _readObject&lt;br /&gt;
raise ReadException, "Not a valid JSON object key (should be a string): %s" % key&lt;br /&gt;
ReadException: Not a valid JSON object key (should be a string): [1, 2]&lt;/p&gt;
&lt;p&gt;So it does accept tuples as keys whilst encoding, but won't decode them anymore.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 22 Jul 2008 19:51:45 -0000</pubDate><guid>https://sourceforge.netfd01e313f3704dae037556aa681494dc434db391</guid></item><item><title>Error on empty array</title><link>https://sourceforge.net/p/json-py/bugs/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On parsing JSON with an empty array with a newline between the opening and closing bracket the parser throws an error:&lt;/p&gt;
&lt;p&gt;json.ReadException: Input is not valid JSON: '[\n]&lt;br /&gt;
'&lt;/p&gt;
&lt;p&gt;input can be as simple as this:&lt;/p&gt;
&lt;p&gt;[&lt;br /&gt;
]&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 20 Dec 2006 15:28:52 -0000</pubDate><guid>https://sourceforge.net68a6dcc5661a046a68d65d3c828b13d4a576ff69</guid></item><item><title>Strange problem</title><link>https://sourceforge.net/p/json-py/bugs/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm already using the PHP json_encode function to encode data for some Ajax apps, and the pygtk app I'm working on is an extension of this.&lt;/p&gt;
&lt;p&gt;However I get an error with the string below. The crux is that if the "data=" is removed from the front it works in python. However with the "data=" there is fails in Python but works on browsers?&lt;/p&gt;
&lt;p&gt;So which is incorrect, the browsers interperation or the json.py ??&lt;/p&gt;
&lt;p&gt;Apart from that it works great. It would also ne nice to have a couple of examples on the website and am prepared to do that.&lt;/p&gt;
&lt;p&gt;Regards &lt;br /&gt;
Pete&lt;/p&gt;
&lt;p&gt;-- Dont like this ---&lt;br /&gt;
in php &amp;gt;&amp;gt; echo 'data='.json_encode($users);&lt;/p&gt;
&lt;p&gt;data={"3":{"user":"Beth Morgan","status":"out","date_in":"2006-11-05 10:00:00","dat":"2006-11-05","tim":"10:00:00"}}&lt;/p&gt;
&lt;p&gt;-- This is ok ---&lt;br /&gt;
echo json_encode($users);&lt;/p&gt;
&lt;p&gt;{"3":{"user":"Beth Morgan","status":"out","date_in":"2006-11-05 10:00:00","dat":"2006-11-05","tim":"10:00:00"}}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter "mash" Morgan</dc:creator><pubDate>Sun, 17 Dec 2006 04:10:43 -0000</pubDate><guid>https://sourceforge.netd80eac1beb399fdd868b7c0345e2d31621ddd454</guid></item><item><title>Doesn't handle numbers with exponentials correctly.</title><link>https://sourceforge.net/p/json-py/bugs/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Doesn't handle numbesr of the form 3.746484E7 correctly&lt;br /&gt;
(throws an exception).&lt;/p&gt;
&lt;p&gt;This is easy to fix, just change line 112 to:&lt;br /&gt;
while peek is not None and (peek.isdigit() or&lt;br /&gt;
peek == "." or peek == "E")&lt;/p&gt;
&lt;p&gt;this isn't robust, will allow through 3.444EEE2, so&lt;br /&gt;
obviously not great.  But it'll get the library working&lt;br /&gt;
again.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 07 Oct 2006 08:21:15 -0000</pubDate><guid>https://sourceforge.net9ab8e51d3efcea61d2c13fe57ac55199a48e9db2</guid></item><item><title>minjson.py backslashed quotes fix</title><link>https://sourceforge.net/p/json-py/bugs/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Calling _getStringState() to count quotes around a&lt;br /&gt;
potentially DoS-causing mathematical expression&lt;br /&gt;
generally works just fine. However, if there happen to&lt;br /&gt;
be backslashed quotes within the string being checked,&lt;br /&gt;
then those quotes are counted within _getStringState(),&lt;br /&gt;
even though they are backslashed and shouldn't be&lt;br /&gt;
counted. The fix is to remove backslashed quotes from&lt;br /&gt;
the string being tested from _sanityCheckMath() before&lt;br /&gt;
trying to count quotes. Attached is a patch to fix this.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Helfman</dc:creator><pubDate>Mon, 09 Jan 2006 19:32:58 -0000</pubDate><guid>https://sourceforge.net0b61a4730fe1ac2520b274acba29d6d54ad438be</guid></item><item><title>write should raise an exception on invalid dict keys.</title><link>https://sourceforge.net/p/json-py/bugs/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;json.read("{1:'value'}'") #will raise an exception on&lt;br /&gt;
an invalid integer key.&lt;/p&gt;
&lt;p&gt;json.write({1:'value'}) #Will not raise an exception on&lt;br /&gt;
the integer key.&lt;/p&gt;
&lt;p&gt;Martijn.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 25 Sep 2005 13:41:09 -0000</pubDate><guid>https://sourceforge.net88837e216aaa9153048102c989f949b867a0b5ac</guid></item><item><title>tests fail when run as python -O</title><link>https://sourceforge.net/p/json-py/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;json.py relies on side affects in assert statements&lt;br /&gt;
which are compiled out when python is run with&lt;br /&gt;
optimization (-O). &lt;/p&gt;
&lt;p&gt;to reproduce: python -O jsontests.py&lt;/p&gt;
&lt;p&gt;also, could you have the archive unpack to a directory&lt;br /&gt;
that contains the same name as the archive (ie.&lt;br /&gt;
json-py-3_4) instead of hosing the current working&lt;br /&gt;
directory. it would also be nice if json-py used&lt;br /&gt;
distutils (http://docs.python.org/dist/dist.html).&lt;/p&gt;
&lt;p&gt;finally, you may want to consider listing json-py in&lt;br /&gt;
the cheeseshop (http://cheeseshop.python.org) as it is&lt;br /&gt;
becoming the standard place for python software.&lt;/p&gt;
&lt;p&gt;thanks,&lt;br /&gt;
wes&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 18 Sep 2005 14:59:02 -0000</pubDate><guid>https://sourceforge.net563825d5fdb2bee01dfff1f372c3ad0a86bc3200</guid></item><item><title>Comments not allowed before array/object closing</title><link>https://sourceforge.net/p/json-py/bugs/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Two more test cases which are valid JSON but not parsed&lt;br /&gt;
properly. Note that the empty array bug does not make&lt;br /&gt;
the second test case useful just yet (but it fails on&lt;br /&gt;
my own fixed version).&lt;/p&gt;
&lt;p&gt;json.read('[{} /*Comment*/]')&lt;/p&gt;
&lt;p&gt;json.read('{"test": [] /*Comment*/}')&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Koen van de Sande</dc:creator><pubDate>Mon, 08 Aug 2005 20:50:13 -0000</pubDate><guid>https://sourceforge.net6ee0f6562674feb04e9559fe9d0d00646f3d9a4f</guid></item></channel></rss>