Module type Writer_monad_intf.Intf
module IO : Jsonxt__.Io.IO
val json_writer : writer:(string -> unit IO.t) -> eol:string -> incr:int -> psep:string -> json -> unit IO.t
json_writer ~writer ~eol ~incr ~psep json
convertsjson
to a strings
and writes it out using thewriter string
function.incr
,eol
andpsep
work together to output human readable output.incr
defines the increase in indentation,eol
the end of line sequence andpsep
the string to seperate the : from the value in objectsThe
writer string
function takes a string and returns aunit IO.t