Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
OCaml bindings to native Objective-C handling of plists; works on Linux and OS X
val from_string : string -> plist
Create a plist from a JSON formatted string, raises Invalid_argument if input string isn't in a Plist readable format
val to_string : plist -> string
Convert a Plist into a pretty formated JSON string, raises Invalid_argument when plist can't be turned into a string
val to_file : string -> bool -> plist -> unit
Writing a plist to file, second argument is whether to write as binary; raises Invalid_argument if trying to convert plist to binary fails, raises Failure if writing to a file location fails.
val from_file : string -> plist
Raises Invalid_argument if file does not exist
val to_bytes : plist -> bytes
Returns the plist as raw binary bytes, raises Invalid_argument if plist can't be turned into raw bytes
val from_yojson : Yojson.Basic.t -> plist
Simple helpers
val to_yojson : plist -> Yojson.Basic.t