Module type Writer_intf.Intf
val json_to_string : json -> (string, string) Stdlib.resultjson_to_string jsonconvertsjsonto astring, returning an error if the json value contains data that fails compliance checks
val json_to_string_exn : json -> stringjson_to_string_exn jsonconvertsjsonto astring, raising aFailureexcepion if the json value contains data that fails compliance checks
val to_string : json -> stringto_stringis an alias for json_to_string_exn
val json_to_string_hum : json -> (string, string) Stdlib.resultjson_to_string_hum jsonconvertsjsonto astringin human readable format, returning an error if the json value contains data that fails compliance checks
val json_to_string_hum_exn : json -> stringjson_to_string_hum_exn jsonconvertsjsonto astringin human readable format, raising aFailureexcepion if the json value contains data that fails compliance checks
val to_string_hum : json -> stringto_string_humis an alias for json_to_string_hum_exn
val json_to_file : string -> json -> (unit, string) Stdlib.resultjson_to_file file jsonconvertsjsonto a string and writes it tofile, returning an error if the json value contains data that fails compliance checks. The file will be closed on error.
val json_to_file_hum : string -> json -> (unit, string) Stdlib.resultjson_to_file_hum file jsonconvertsjsonto a string in human readable format and writes it tofile, returning an error if the json value contains data that fails compliance checks. The file will be closed on error.
val json_to_file_exn : string -> json -> unitjson_to_file_exn file jsonconvertsjsonto a string and writes it tofile, raising aFailureexception if the json value contains data that fails compliance checks. The file will be closed on error.
val json_to_file_hum_exn : string -> json -> unitjson_to_file_hum_exn file jsonconvertsjsonto a string in human readable format and writes it tofile, raisingFailureexception if the json value contains data that fails compliance checks. The file will be closed on error.
val json_to_channel : Stdlib.out_channel -> json -> (unit, string) Stdlib.resultjson_to_channel channel jsonconvertsjsonto a string and writes it tochannel, returning an error if the json value contains data that fails compliance checks. The channel is not closed.
val json_to_channel_exn : Stdlib.out_channel -> json -> unitjson_to_channel_exn channel jsonconvertsjsonto a string and writes it tochannel, raising aFailureexception if the json value contains data that fails compliance checks. The channel will be closed on error.
val json_to_channel_hum : Stdlib.out_channel -> json -> (unit, string) Stdlib.resultjson_to_channel_hum channel jsonconvertsjsonto a string in human readable format and writes it tochannel, returning an error if the json value contains data that fails compliance checks. The channel is not closed.
val json_to_channel_hum_exn : Stdlib.out_channel -> json -> unitjson_to_channel_hum_exn channel jsonconvertsjsonto a string in human readable format and writes it tochannel, raisingFailureexception if the json value contains data that fails compliance checks. The channel is not closed
val to_file : string -> json -> unitto_fileis an alias for json_to_file_exn
val to_file_hum : string -> json -> unitto_file_humis an alias for json_to_file_hum_exn
val to_channel : Stdlib.out_channel -> json -> unitto_channelis an alias for json_to_channel_exn
val to_channel_hum : Stdlib.out_channel -> json -> unitto_channel_humis an alias for json_to_channel_hum_exn
val json_to_buffer : Stdlib.Buffer.t -> json -> (unit, string) Stdlib.resultjson_to_buffer buf jsonconverts and outputsjsonto the suppliedbuf, returning an error if the json value contains data that fails compliance checks.
val json_to_buffer_exn : Stdlib.Buffer.t -> json -> unitjson_to_buffer_exn buf jsonconverts and outputsjsonto the suppliedbuf, raising aFailureexception if the json value contains data that fails compliance checks.
val json_to_buffer_hum : Stdlib.Buffer.t -> json -> (unit, string) Stdlib.resultjson_to_buffer_hum buf jsonconverts and outputsjsonin a human readable format to the suppliedbuf, returning an eror if the json value contains data that fails compliance checks.
val json_to_buffer_hum_exn : Stdlib.Buffer.t -> json -> unitjson_to_buffer_hum_exn buf jsonconverts and outputsjsonin a human readable format to the suppliedbuf, raising aFailureexception if the json value contains data that fails compliance checks.
val to_buffer : Stdlib.Buffer.t -> json -> unitto_bufferis an alias for json_to_buffer_exn
val to_buffer_hum : Stdlib.Buffer.t -> json -> unitto_buffer_humis an alias for json_to_buffer_hum_exn
val pretty_print : Stdlib.Format.formatter -> json -> unitpretty_print out jsonpretty prints thejsontree to theFormater.formatterThe output is more compact than the _hum versions but still readable
val pretty_print_to_string : json -> stringpretty_print_to_string jsonconverts thejsontree into a pretty printed string. The output is more compact than the _hum versions but still readable
val pretty_print_to_channel : Stdlib.out_channel -> json -> unitpretty_print oc jsonpretty prints thejsontree to the output channeloutThe output is more compact than the _hum versions but still readable
val stream_to_string : json Stdlib.Stream.t -> stringstream_to_string streamconverts aStream.tofjsonvalues to a string, separating the enties with newlines
val stream_to_channel : Stdlib.out_channel -> json Stdlib.Stream.t -> unitstream_to_channel out_channelconverts aStream.tofjsonvalues to a newline separated list of compact json strings and outputs them toout_channel
val stream_to_file : string -> json Stdlib.Stream.t -> unitstream_to_file stream fileconverts aStream.tofjsonvalues to a newline separated list of compact json strings and outputs them tofile
val stream_to_buffer : Stdlib.Buffer.t -> json Stdlib.Stream.t -> unitstream_to_buffer buf streamconverts aStream.tofjsonvalues to compact strings and outputs them, separating by newlines, tobuf