ydump(1)

ydump1

Json pretty printer

Usage

ydump [Options ...] [file]

Overview

ydump pretty prints data in the extended JSON format of the yojson library. JSON stands for JavaScript Object Notation and is a lightweight data-interchange format.

ydump reads from standard input if the file argument is omitted.

Options

-o <file>

pretty print to file instead of standard output

-std

use JSON standard syntax only: Convert tuples and variants into standard JSON, refuse to print NaN and infinities, require the root node to be either an object or an array.

-c

compact output

-s

streaming mode: read and write a sequence of JSON values instead of just one (this is the default).

-u

disable streaming mode: A single JSON record is expected.

-sort

sort object fields (default: preserve internal field order)

-ob

convert to biniou format and pretty print that (experimental)

-version

print version and exit

-help | --help

print options

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8–13

--help since Debian 8 (Jessie); -help since Debian 8 (Jessie); -sort since Debian 8 (Jessie); -u since Debian 8 (Jessie); -version since Debian 8 (Jessie).

Author

This manual page was written by Sylvain Le Gall <[email protected]> and Hendrik Tews <[email protected]>, specifically for the Debian project (and may be used by others).

From yojson-tools 2.2.2-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.