Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

json_diff

Semantic diff of two JSON files (not a persistence reader). Optionally ignores metadata (__*) and private (_*) fields before comparing.

Usage

json_diff --file1 <a.json> --file2 <b.json> [options]

Files are passed via flags — json_diff takes no positional arguments.

OptionPurpose
--file1 / -aFirst JSON file
--file2 / -bSecond JSON file
--without_metadata / -mDrop __* fields before diffing
--without_private / -pDrop _* fields before diffing
--verbose / -vVerbose output

See also