package json_of_jsonm

  1. Overview
  2. Docs
module Json_of_string : sig ... end
val json_of_string : string -> (json, string) result

json_of_string - decode a string to a json type

val json_of_string_exn : string -> json

json_of_string_exn - the same as json_of_string but raises on error

val json_to_string : json -> (string, string) result

json_to_string - encode a json type to a string

val json_to_string_exn : json -> string

json_to_string_exn - the same as json_to_string but raises on error

val json_to_string_hum : json -> (string, string) result

json_to_string_hum - same as json_to_string_exn but formats the output for humans to read

val of_string : string -> t

of_string - decode a string to a json type, raises on error

val to_string : t -> string

to_string - encode a json type to a string, raises on error

OCaml

Innovation. Community. Security.