File: test.ml

package info (click to toggle)
yojson 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 2,216 kB
  • sloc: ml: 3,890; makefile: 28
file content (6 lines) | stat: -rw-r--r-- 130 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
module J = Yojson.Safe

let () =
  let j = J.from_file "sample.json" in
  Format.printf "%a@." (J.pretty_print ?std:None) j;
  ()