Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Jsonlint Processor

Purpose

Lints JSON files using jsonlint.

The Rust alternative is ijsonlint: each file parsed in-process with serde_json, no Node.

How It Works

Discovers .json files in the project (excluding common build tool directories), runs jsonlint on each file, and records success in the cache. A non-zero exit code from jsonlint fails the product.

This processor does not support batch mode — each file is checked individually.

Source Files

  • Input: **/*.json
  • Output: none (checker)

Configuration

[processor.checker.jsonlint]
command = "jsonlint"                          # The jsonlint command to run
args = []                                    # Additional arguments to pass to jsonlint
dep_inputs = []                            # Additional files that trigger rebuilds when changed
KeyTypeDefaultDescription
commandstring"jsonlint"The jsonlint executable to run
argsstring[][]Extra arguments passed to jsonlint
dep_inputsstring[][]Extra files whose changes trigger rebuilds

Batch support

The tool accepts multiple files on the command line. When batching is enabled (default), rsconstruct passes all files in a single invocation for better performance.

Clean behavior

This processor is a Checker — rsconstruct clean outputs is a no-op for it (checkers produce no outputs). See Clean behavior and rsconstruct clean.