Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

prevOpen Source→json-combnext

json-comb0.11.6

Command line app to manage sets of JSON files

Downloads per monthChangelogMIT Licenselibera manifesto
  • the top
  • Installation
  • USE IT
  • API — FLAGS
  • NORMALISE
  • PROCESSING ER…
  • Changelog

Permalink to InstallationInstallation

Use it

Once installed, call jsoncomb in the terminal with file paths, folder paths, or quoted glob patterns, for example:

$ jsoncomb --normalise "first.json" "second.json"
$ jsoncomb -n "data/**/index.json" -i "content.optional"
$ jsoncomb -n "**/*.json" -t

$ jsoncomb -v
$ jsoncomb --version
$ jsoncomb -h
$ jsoncomb --help

API — flags

shortlongdescription
-n
-n--normaliseNormalise all files in the given set
-i
-i--ignoreIgnore object key paths when filling placeholder values
-t
-t--tabsUse tabs instead of default 2 spaces for JSON indentation
-v
-v--versionShows the installed version of json-comb
-h
-h--helpShows (similar to this) help

Normalise

$ jsoncomb --normalise "first.json" "second.json"
$ jsoncomb -n "data/**/index.json" -i "content.optional"

Normalisation adds missing keys from the combined schema to each JSON file. The matched set must contain at least two files. The --ignore option names object key paths; it does not exclude files from the matched set.

Processing errors

If normalisation fails, JSON Comb writes an [ID_3] diagnostic to standard error and exits with code 1. JSON parsing and filesystem errors include the original error message, including the affected path when available.

Normalisation updates files in place. A write failure can occur after other files have been updated; the operation does not roll back those changes.

Permalink to changelogChangelog

Open Changelog
↑ back to top
prev next

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab