package jsonaf
-
jsonaf.kernel
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
serialize_hum ~spaces t
serializes t
in a “human readable” form with newlines separating elements of objects and arrays and an additional indentation of spaces
spaces for their contents. A typical choice is ~spaces:2
.
Passing ~spaces:0
gives the exact same output as serialize
.
val run_hum : spaces:int -> t -> string
run_hum ~spaces, t
should produce very similar output to JSON.stringify(t,null,spaces)
in JavaScript.