opam-version: "2.0"
maintainer: "martin@mjambon.com"
authors: ["Martin Jambon"]
homepage: "http://mjambon.com/yojson.html"
bug-reports: "https://github.com/mjambon/yojson/issues"
dev-repo: "git+https://github.com/mjambon/yojson.git"
build: [
  [make] {ocaml:native}
  [make "all"] {!ocaml:native}
]
install: [
  [make "install-lib"]
]
remove: [
  [make "uninstall-lib"]
]
depends: [
  "ocaml" {< "4.06.0"}
  "ocamlfind"
  "cppo"
  "easy-format"
  "biniou" {>= "1.0.6"}
]
synopsis:
  "Yojson is an optimized parsing and printing library for the JSON format"
description: """
It addresses a few shortcomings of json-wheel including 2x speedup,
polymorphic variants and optional syntax for tuples and variants.

ydump is a pretty-printing command-line program provided with the
yojson package.

The program atdgen can be used to derive OCaml-JSON serializers and
deserializers from type definitions."""
extra-files: ["yojson.install" "md5=992a663b313888121778a1b7b18b622c"]
url {
  src: "https://github.com/mjambon/yojson/archive/v1.2.3.tar.gz"
  checksum: "md5=d79a093ed295a1c1a7876abca1c3e656"
}
