locked
Json Deserialization is giving error in IronPython RRS feed

  • Question

  • User-1413729368 posted

    Hi,

    Have anyone tried json deserialization. When I tried:

    >>> import json

    >>> json.loads('["foo", {"bar":["baz", '"Test", 1.0, 2]}]')

    I got following error:

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Program Files\IronPython 2.6 for .NET 4.0\Lib\json\__init__.py", line
     307, in loads
      File "C:\Program Files\IronPython 2.6 for .NET 4.0\Lib\json\scanner.py", line
    42, in iterscan
    AttributeError: 'NoneType' object has no attribute 'scanner'

    Traceback (most recent call last):  File "<stdin>", line 1, in <module>

      File "C:\Program Files\IronPython 2.6 for .NET 4.0\Lib\json\__init__.py", line  307, in loads

      File "C:\Program Files\IronPython 2.6 for .NET 4.0\Lib\json\scanner.py", line 42, in iterscan


    Please don't tell me It's not possible in IronPython. 


    Thanks.

    Ashish

    Monday, June 7, 2010 10:12 AM

All replies

  • User-1413729368 posted

    This is kind of disappointment for me. I was expecting some response from developers who have already used. I don't understand how come IronPython is bundled with the module which itself is not supporting. I was thinking of good use of IronPython and .NET 4.0 features to develop a good framework for MongoDB, but due to this error, my whole plan is ruined. Writing a module from scratch doesn't make any sense when there is already a json module. Is anybody out there.

    Monday, June 14, 2010 2:45 AM