Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Counts JSON fields
OCaml
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
Makefile
README.md
jsoncount.ml

README.md

jsoncount

jsoncount is a command-line tool that counts the number of occurrences of nodes in a JSON file containing one or multiple JSON values.

The rules for counting are the following:

  • null values are not counted
  • array cells are counted regardless of the index
  • empty arrays and empty objects are counted

Installation

Requires a standard installation of OCaml, ocamlfind and yojson.

$ make
$ make install  # Installation directory defaults to $HOME/bin.

PREFIX and BINDIR are supported, so if you want to install wcl in /usr/local, just do:

$ sudo make PREFIX=/usr/local install

Uninstallation

$ make uninstall
Something went wrong with that request. Please try again.