Module type Writer_intf.Intf
- val json_to_string : json -> (string, string) Stdlib.result
- json_to_string jsonconverts- jsonto a- string, returning an error if the json value contains data that fails compliance checks
- val json_to_string_exn : json -> string
- json_to_string_exn jsonconverts- jsonto a- string, raising a- Failureexcepion if the json value contains data that fails compliance checks
- val to_string : json -> string
- to_stringis an alias for json_to_string_exn
- val json_to_string_hum : json -> (string, string) Stdlib.result
- json_to_string_hum jsonconverts- jsonto a- stringin human readable format, returning an error if the json value contains data that fails compliance checks
- val json_to_string_hum_exn : json -> string
- json_to_string_hum_exn jsonconverts- jsonto a- stringin human readable format, raising a- Failureexcepion if the json value contains data that fails compliance checks
- val to_string_hum : json -> string
- to_string_humis an alias for json_to_string_hum_exn
- val json_to_file : string -> json -> (unit, string) Stdlib.result
- json_to_file file jsonconverts- jsonto a string and writes it to- file, 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.result
- json_to_file_hum file jsonconverts- jsonto a string in human readable format and writes it to- file, 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 -> unit
- json_to_file_exn file jsonconverts- jsonto a string and writes it to- file, raising a- Failureexception 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 -> unit
- json_to_file_hum_exn file jsonconverts- jsonto a string in human readable format and writes it to- file, raising- Failureexception 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.result
- json_to_channel channel jsonconverts- jsonto a string and writes it to- channel, 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 -> unit
- json_to_channel_exn channel jsonconverts- jsonto a string and writes it to- channel, raising a- Failureexception 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.result
- json_to_channel_hum channel jsonconverts- jsonto a string in human readable format and writes it to- channel, 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 -> unit
- json_to_channel_hum_exn channel jsonconverts- jsonto a string in human readable format and writes it to- channel, raising- Failureexception if the json value contains data that fails compliance checks. The channel is not closed
- val to_file : string -> json -> unit
- to_fileis an alias for json_to_file_exn
- val to_file_hum : string -> json -> unit
- to_file_humis an alias for json_to_file_hum_exn
- val to_channel : Stdlib.out_channel -> json -> unit
- to_channelis an alias for json_to_channel_exn
- val to_channel_hum : Stdlib.out_channel -> json -> unit
- to_channel_humis an alias for json_to_channel_hum_exn
- val json_to_buffer : Stdlib.Buffer.t -> json -> (unit, string) Stdlib.result
- json_to_buffer buf jsonconverts and outputs- jsonto the supplied- buf, returning an error if the json value contains data that fails compliance checks.
- val json_to_buffer_exn : Stdlib.Buffer.t -> json -> unit
- json_to_buffer_exn buf jsonconverts and outputs- jsonto the supplied- buf, raising a- Failureexception if the json value contains data that fails compliance checks.
- val json_to_buffer_hum : Stdlib.Buffer.t -> json -> (unit, string) Stdlib.result
- json_to_buffer_hum buf jsonconverts and outputs- jsonin a human readable format to the supplied- buf, returning an eror if the json value contains data that fails compliance checks.
- val json_to_buffer_hum_exn : Stdlib.Buffer.t -> json -> unit
- json_to_buffer_hum_exn buf jsonconverts and outputs- jsonin a human readable format to the supplied- buf, raising a- Failureexception if the json value contains data that fails compliance checks.
- val to_buffer : Stdlib.Buffer.t -> json -> unit
- to_bufferis an alias for json_to_buffer_exn
- val to_buffer_hum : Stdlib.Buffer.t -> json -> unit
- to_buffer_humis an alias for json_to_buffer_hum_exn
- val pretty_print : Stdlib.Format.formatter -> json -> unit
- pretty_print out jsonpretty prints the- jsontree to the- Formater.formatterThe output is more compact than the _hum versions but still readable
- val pretty_print_to_string : json -> string
- pretty_print_to_string jsonconverts the- jsontree 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 -> unit
- pretty_print oc jsonpretty prints the- jsontree to the output channel- outThe output is more compact than the _hum versions but still readable
- val stream_to_string : json Stdlib.Stream.t -> string
- stream_to_string streamconverts a- Stream.tof- jsonvalues to a string, separating the enties with newlines
- val stream_to_channel : Stdlib.out_channel -> json Stdlib.Stream.t -> unit
- stream_to_channel out_channelconverts a- Stream.tof- jsonvalues to a newline separated list of compact json strings and outputs them to- out_channel
- val stream_to_file : string -> json Stdlib.Stream.t -> unit
- stream_to_file stream fileconverts a- Stream.tof- jsonvalues to a newline separated list of compact json strings and outputs them to- file
- val stream_to_buffer : Stdlib.Buffer.t -> json Stdlib.Stream.t -> unit
- stream_to_buffer buf streamconverts a- Stream.tof- jsonvalues to compact strings and outputs them, separating by newlines, to- buf