diff --git a/src/plugins/server/data.ml b/src/plugins/server/data.ml index f40abf8eb991b23024d9709de072a04a37727e40..10a7eef47743d582d6e0075dc82de2759b6a995b 100644 --- a/src/plugins/server/data.ml +++ b/src/plugins/server/data.ml @@ -27,7 +27,7 @@ module Json = Yojson.Basic module Jutil = Yojson.Basic.Util -type json = Json.json +type json = Json.t let pretty = Json.pretty_print ~std:false module type S = diff --git a/src/plugins/server/doc.ml b/src/plugins/server/doc.ml index f68815c2cfa79c4caa8393dc70ed331b4e9e4e22..9b4eabf3a5e361673341ce9e296e45adfe5f7e58 100644 --- a/src/plugins/server/doc.ml +++ b/src/plugins/server/doc.ml @@ -125,7 +125,7 @@ let index () = (fun (title,entry) -> Markdown.href ~title entry) (List.sort (fun (a,_) (b,_) -> String.compare a b) !entries) -type json = Yojson.Basic.json +type json = Json.t let link ~toc ~title ~href : json = let link = [ "title" , `String title ; "href" , `String href ] in @@ -141,7 +141,7 @@ let link_page page : json list = else links ) (pages_of_chapter page.chapter) [] -let maindata : Yojson.Basic.json = +let maindata : json = `Assoc [ "document", `String "Frama-C Server" ; "title",`String "Documentation" ; diff --git a/src/plugins/server/jbuffer.ml b/src/plugins/server/jbuffer.ml index 3fe46fd62dbcbf51693ab5a3e5129620e1951136..2f9e3bfa57bdce12769f35301547befac14cf1a8 100644 --- a/src/plugins/server/jbuffer.ml +++ b/src/plugins/server/jbuffer.ml @@ -20,7 +20,7 @@ (* *) (**************************************************************************) -type json = Yojson.Basic.json +type json = Json.t type buffer = { text : FCBuffer.t ; diff --git a/src/plugins/server/jbuffer.mli b/src/plugins/server/jbuffer.mli index d384e4352e86791ee96d1885a197ca9b5c8019aa..6f307acf2d1f689dd58e5c9de73982cc40e6559e 100644 --- a/src/plugins/server/jbuffer.mli +++ b/src/plugins/server/jbuffer.mli @@ -20,7 +20,7 @@ (* *) (**************************************************************************) -type json = Yojson.Basic.json +type json = Json.t (** All-in-one formatter. Return the JSON encoding of formatted text. *) val format : ?indent:int -> ?margin:int -> diff --git a/src/plugins/server/main.ml b/src/plugins/server/main.ml index 9edee0df2255d4905a9e21b9e514f0aa4afc2b91..28491bb2949812b5a1b338ae349829d3c4825aee 100644 --- a/src/plugins/server/main.ml +++ b/src/plugins/server/main.ml @@ -55,7 +55,7 @@ let exec request data = (snd (Hashtbl.find registry request)) data (* --- Public API --- *) (* -------------------------------------------------------------------------- *) -type json = Json.json +type json = Json.t type 'a request = [ | `Poll diff --git a/src/plugins/server/main.mli b/src/plugins/server/main.mli index b608cdafa76b97afa9b0bca9742a4123d97a156d..b379f14bd2a772cac0a158f5fc9c56c03e08b38a 100644 --- a/src/plugins/server/main.mli +++ b/src/plugins/server/main.mli @@ -24,7 +24,7 @@ (** Server Main Process *) (* -------------------------------------------------------------------------- *) -type json = Yojson.Basic.json +type json = Json.t type kind = [ `GET | `SET | `EXEC ] val string_of_kind : kind -> string val pp_kind : Format.formatter -> kind -> unit