jd is a command-line tool for comparing two JSON or YAML values and producing a diff that can be applied as a patch. It is aimed at developers who work with configuration files and API data and want to check or script changes from a terminal.
It uses its own diff format, which resembles unified diff, and also supports JSON Merge Patch (RFC 7386) and a subset of JSON Patch (RFC 6902). The project is also published as a Go library, so the same logic can be called from other Go programs. It is released under the MIT license, the source is on GitHub, and the listing shows Windows as the platform.
Alternatives to jd
Products that do a similar job in Developer Tools.
yq
command-line processor for YAML, JSON, XML, CSV and TOML files
jc
Converts shell command output and strings into JSON, YAML or dictionaries
dasel
command-line tool for querying and editing JSON, YAML, TOML and XML
Kestra
Open-source workflow orchestrator for data, infrastructure and business processes
Archon
Workflow engine that runs AI coding assistants through repeatable YAML steps
fx
Interactive terminal viewer and processor for JSON data
gron
Command-line tool that flattens JSON into greppable lines
JSON Hero
Web-based JSON viewer for browsing and searching large JSON files