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.
ashudotnet
Member
81 Points
20 Posts
Json Deserialization is giving error in IronPython
Jun 07, 2010 02:12 PM|LINK
Hi,
Have anyone tried json deserialization. When I tried:
>>> import json
>>> json.loads('["foo", {"bar":["baz", '"Test", 1.0, 2]}]')
I got following error:
<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">Traceback (most recent call last):</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> File "<stdin>", line 1, in <module></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> File "C:\Program Files\IronPython 2.6 for .NET 4.0\Lib\json\__init__.py", line</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> 307, in loads</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> File "C:\Program Files\IronPython 2.6 for .NET 4.0\Lib\json\scanner.py", line</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">42, in iterscan</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">AttributeError: 'NoneType' object has no attribute 'scanner'</div>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
Thanks,
Ashish
http://ashudotnet.blogspot.com
ashudotnet
Member
81 Points
20 Posts
Re: Json Deserialization is giving error in IronPython
Jun 14, 2010 06:45 AM|LINK
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.
Thanks,
Ashish
http://ashudotnet.blogspot.com