package calculon-web

  1. Overview
  2. Docs

Module Calculon_web.Movie_jSource

Sourcetype year = Movie_t.year
Sourcetype maybe = Movie_t.maybe
Sourcetype search_entry = Movie_t.search_entry = {
  1. s_title : maybe;
  2. s_id : string;
}
Sourcetype search_result = Movie_t.search_result = {
  1. count : int;
  2. results : search_entry list;
}
Sourcetype query_entry = Movie_t.query_entry = {
  1. title : maybe;
  2. id : string;
  3. year : year;
  4. rating : float;
  5. plot : maybe;
}
Sourceval write_year : Buffer.t -> year -> unit

Output a JSON value of type year.

Sourceval string_of_year : ?len:int -> year -> string

Serialize a value of type year into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_year : Yojson.Safe.lexer_state -> Lexing.lexbuf -> year

Input JSON data of type year.

Sourceval year_of_string : string -> year

Deserialize JSON data of type year.

Sourceval write_maybe : Buffer.t -> maybe -> unit

Output a JSON value of type maybe.

Sourceval string_of_maybe : ?len:int -> maybe -> string

Serialize a value of type maybe into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_maybe : Yojson.Safe.lexer_state -> Lexing.lexbuf -> maybe

Input JSON data of type maybe.

Sourceval maybe_of_string : string -> maybe

Deserialize JSON data of type maybe.

Sourceval write_search_entry : Buffer.t -> search_entry -> unit

Output a JSON value of type search_entry.

Sourceval string_of_search_entry : ?len:int -> search_entry -> string

Serialize a value of type search_entry into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_search_entry : Yojson.Safe.lexer_state -> Lexing.lexbuf -> search_entry

Input JSON data of type search_entry.

Sourceval search_entry_of_string : string -> search_entry

Deserialize JSON data of type search_entry.

Sourceval write_search_result : Buffer.t -> search_result -> unit

Output a JSON value of type search_result.

Sourceval string_of_search_result : ?len:int -> search_result -> string

Serialize a value of type search_result into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_search_result : Yojson.Safe.lexer_state -> Lexing.lexbuf -> search_result

Input JSON data of type search_result.

Sourceval search_result_of_string : string -> search_result

Deserialize JSON data of type search_result.

Sourceval write_query_entry : Buffer.t -> query_entry -> unit

Output a JSON value of type query_entry.

Sourceval string_of_query_entry : ?len:int -> query_entry -> string

Serialize a value of type query_entry into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_query_entry : Yojson.Safe.lexer_state -> Lexing.lexbuf -> query_entry

Input JSON data of type query_entry.

Sourceval query_entry_of_string : string -> query_entry

Deserialize JSON data of type query_entry.

OCaml

Innovation. Community. Security.