<!-- @generated by usage-cli from usage spec -->

# `usage generate json`

- **Usage**: `usage generate json [FLAGS]`
- **Effect**: read-only
- **Source code**: [`cli/src/cli/generate/json.rs`](https://github.com/jdx/usage/blob/main/cli/src/cli/generate/json.rs)

Outputs a usage spec in json format

## Flags

### `-f --file <FILE>`

A usage spec taken in as a file, use "-" to read from stdin

### `--spec <SPEC>`

raw string spec input

### `--view <VIEW>`

Render one spec-declared executable view
