package json_of_jsonm

  1. Overview
  2. Docs

Module Json_of_jsonm_lib.Json_stringSource

Sourcemodule Json_of_string : sig ... end
Sourceval json_of_string : string -> (json, string) result

json_of_string - decode a string to a json type

Sourceval json_of_string_exn : string -> json

json_of_string_exn - the same as json_of_string but raises on error

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

json_to_string - encode a json type to a string

Sourceval json_to_string_exn : json -> string

json_to_string_exn - the same as json_to_string but raises on error

Sourceval 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

Sourceval of_string : string -> t

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

Sourceval to_string : t -> string

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

OCaml

Innovation. Community. Security.