package spotify-web-api

  1. Overview
  2. Docs
type image = Image_t.image = {
  1. height : int;
  2. url : string;
  3. width : int;
}
val write_image : Stdlib.Buffer.t -> image -> unit

Output a JSON value of type image.

val string_of_image : ?len:int -> image -> string

Serialize a value of type image into a JSON string.

  • parameter len

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

val read_image : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> image

Input JSON data of type image.

val image_of_string : string -> image

Deserialize JSON data of type image.

OCaml

Innovation. Community. Security.