[IronPython] JSON vs. IronPython

Brian Curtin brian.curtin at gmail.com
Fri Jul 9 20:12:25 CEST 2010


On Fri, Jul 9, 2010 at 13:05, Marcin Krol <mrkafk at 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]}]'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100709/78fa9721/attachment.html>


More information about the Ironpython-users mailing list