Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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

Hi,

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.

Cheers,
Dario



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