Version française
Home     About     Download     Resources     Contact us    
Browse thread
picking / marshaling to strings in ocaml-revision-stable way
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@u...>
Subject: Re: [Caml-list] picking / marshaling to strings in ocaml-revision-stable way
On Mon, Jun 02, 2008 at 11:04:58AM +0200, Berke Durak wrote:
> > I don't know the details of the two involved languages, but it would
> > mean to be very lucky if the escaping conventions are the same ...
> Of course, the code was intended for illustrative purposes. JSON
> escapes characters based using 4-digit Unicode hex codes.
> Except for \n, \r, etc. sot it would probably work for ASCII.

OK then, but the original question was "how far" is Sexplib to obtain
JSON and the answer then should be "still a bit far", it is not just a
function of a couple of lines. You have to write some code to obtain
fully compliant JSON.

Instead of asking people to write it over and over again, it would
probably be a good idea to provide a patch for Sexplib adding
serialization capabilities towards JSON. That assuming, of course, that
Sexplib authors are interested in integrating such a feature.

Cheers.

-- 
Stefano Zacchiroli -*- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
I'm still an SGML person,this newfangled /\ All one has to do is hit the
XML stuff is so ... simplistic  -- Manoj \/ right keys at the right time