This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients ajaksu2, amaury.forgeotdarc, benjamin.peterson, bob.ippolito, georg.brandl, loewis, pitrou, rhettinger
Date 2009-04-07.22:29:20
SpamBayes Score 1.01769e-10
Marked as misclassified No
Message-id <>
There is the problem in the current py3k version of json. b"hi" can be
serialized, but not [b"hi"].

>>> json.dumps(b"hi")
>>> json.dumps([b"hi"])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/antoine/py3k/__svn__/Lib/json/", line 230, in dumps
    return _default_encoder.encode(obj)
  File "/home/antoine/py3k/__svn__/Lib/json/", line 367, in encode
    chunks = list(self.iterencode(o))
  File "/home/antoine/py3k/__svn__/Lib/json/", line 306, in
    for chunk in self._iterencode_list(o, markers):
  File "/home/antoine/py3k/__svn__/Lib/json/", line 204, in
    for chunk in self._iterencode(value, markers):
  File "/home/antoine/py3k/__svn__/Lib/json/", line 317, in
    for chunk in self._iterencode_default(o, markers):
  File "/home/antoine/py3k/__svn__/Lib/json/", line 323, in
    newobj = self.default(o)
  File "/home/antoine/py3k/__svn__/Lib/json/", line 344, in
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'hi' is not JSON serializable
Date User Action Args
2009-04-07 22:29:22pitrousetrecipients: + pitrou, loewis, georg.brandl, rhettinger, bob.ippolito, amaury.forgeotdarc, ajaksu2, benjamin.peterson
2009-04-07 22:29:22pitrousetmessageid: <>
2009-04-07 22:29:20pitroulinkissue4136 messages
2009-04-07 22:29:20pitroucreate