From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 0852BBB84 for ; Mon, 2 Jun 2008 11:22:06 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoBANRYQ0jAXQImiGdsb2JhbACSAQEBAQ8gmis X-IronPort-AV: E=Sophos;i="4.27,577,1204498800"; d="scan'208";a="13078174" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Jun 2008 11:22:05 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m529LwMv030284 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 2 Jun 2008 11:22:05 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoBAB9YQ0hDz4HeiGdsb2JhbACSAQEBAQ8gmic X-IronPort-AV: E=Sophos;i="4.27,577,1204498800"; d="scan'208";a="13361395" Received: from fettunta.fettunta.org ([67.207.129.222]) by mail3-smtp-sop.national.inria.fr with ESMTP; 02 Jun 2008 11:22:04 +0200 Received: from aquarium.takhisis.invalid (unknown [10.17.0.18]) by fettunta.fettunta.org (Postfix) with ESMTP id 58DD618478 for ; Mon, 2 Jun 2008 09:22:03 +0000 (UTC) Received: by aquarium.takhisis.invalid (Postfix, from userid 1000) id F29061241DC; Mon, 2 Jun 2008 11:21:55 +0200 (CEST) Date: Mon, 2 Jun 2008 11:21:55 +0200 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] picking / marshaling to strings in ocaml-revision-stable way Message-ID: <20080602092155.GA1403@aquarium.takhisis.invalid> Mail-Followup-To: caml-list@inria.fr References: <28fa90930805302343n18b98b17t72a22ea82539fc6f@mail.gmail.com> <20080531.174314.107716495.garrigue@math.nagoya-u.ac.jp> <28fa90930805310954w3089478bqfd8c3f821fff207e@mail.gmail.com> <48418421.5090601@fischerventure.com> <20080531225119.GC7463@aquarium.takhisis.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Miltered: at discorde with ID 4843BBB6.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; zacchiroli:01 zack:01 marshaling:01 0200,:01 berke:01 durak:01 escapes:01 cheers:01 zacchiroli:01 postdoc:01 zack:01 wrote:01 pps:01 caml-list:01 jussieu:01 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