There are bugs in the IronPython 2.6.1 json implementation that I believe have been reported and will be fixed in 2.6.2. For instance, the following gives me an exception:
json.loads(json.dumps(dict(test="test"))) I have had better luck with simplejson and import simplejson as json Tristan On Fri, Jul 9, 2010 at 2:12 PM, Brian Curtin <brian.cur...@gmail.com> wrote: > On Fri, Jul 9, 2010 at 13:05, Marcin Krol <mrk...@gmail.com> wrote: > >> Hello everyone, >> >> I have successfully used JSON as serialization protocol between various >> clients and servers in 2 projects, incl. Java app talking to Python servers, >> so I would like to use JSON in my upcoming C/S project as well: there's >> Json.NET, but how viable is using it in IronPython? >> >> Does anybody here have experience with using JSON in IronPython? >> >> -- >> >> Regards, >> mk > > > I've never used JSON.NET, but the standard library json module works fine > for me. > > > IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1 > Type "help", "copyright", "credits" or "license" for more information. > >>> import json > >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) > '["foo", {"bar": ["baz", null, 1.0, 2]}]' > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com