File: write2.ml

package info (click to toggle)
yojson 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 252 kB
  • sloc: ml: 1,957; makefile: 208
file content (10 lines) | stat: -rw-r--r-- 253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
(* $Id$ *)

let pretty_format ?std (x : json) =
  Pretty.format ?std (x :> json_max)

let pretty_to_string ?std (x : json) =
  Pretty.to_string ?std (x :> json_max)

let pretty_to_channel ?std oc (x : json) =
  Pretty.to_channel ?std oc (x :> json_max)