Module Utils.JSON
Module to manipulate JSON file.
val parse_file : string -> Ezjsonm.value optionparse_file file_pathopens the file and parses it as a JSON value. If there is an error during the process, it returns None. If it succeeds, it returns Some JSON.
val parse_metrics_config : unit -> Ezjsonm.value optionparse_metrics_configis just a shortcut forparse_file metrics_config_path.
val extract_from_array : Ezjsonm.value -> Ezjsonm.value listextract_from_array jsonextracts the list fromjsonwherejsonis anEzjsonm.value.`A. Otherwise, it returns the empty list.
val extract_from_obj : Ezjsonm.value -> (string * Ezjsonm.value) listextract_from_obj jsonextracts the associative list fromjsonwherejsonis anEzjsonm.value.`O. Otherwise, it returns the empty list.