File: test.ml

package info (click to toggle)
yojson 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,044 kB
  • sloc: ml: 3,068; makefile: 38
file content (7 lines) | stat: -rw-r--r-- 131 bytes parent folder | download
1
2
3
4
5
6
7
module J = Yojson.Safe

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