English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Long-term storage of values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-21 (14:01)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] Long-term storage of values
> No JSON needs to be written by hand.
> Here's a simple example:
> type json point = { x : int; y : int }  (* an OCaml record *)
> It creates the functions with the following signature:
> val json_of_point : point -> Json_type.t
> val point_of_json : Json_type.t -> point


And thanks for the clarification, Martin.  Okay then, this makes
json-static as convenient as Sexplib, and the strongest candidate
if human-readability is a requirement.  It should also come in
very handy for browser/server communication (AJAX) using the
Ocsigen platform, for example.


Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html