jsonfmt

Ridiculously simple and effective JSON formatter.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-22 05:28

Tags

Installation

nimble install jsonfmt
choosenim install jsonfmt
git clone https://github.com/fkdosilovic/jsonfmt

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
jsonfmt - - - - - - -

Source

Repository https://github.com/fkdosilovic/jsonfmt
Homepage https://github.com/fkdosilovic/jsonfmt
Registry Source nimble_official

README

jsonfmt

Ridiculously simple and effective JSON formatter.

Installation

Run nimble install jsonfmt.

Usage

The simplest way to run the tool is to pass the JSON file (in this case db.json) as the first positional argument (required):

jsonfmt /path/to/json/file/my_json.json

To specify indent, add --indent INT argument:

jsonfmt /path/to/json/file/db.json --indent 2

To specify the output file, add the second (optional) positional argument:

jsonfmt /path/to/json/file/db.json /path/to/json/file/db_formatted.json --indent 2

Motivation

Why another JSON formatter? Unfortunately, VS Code's JSON formatter does not handle JSON files larger than 50 MB. And, as you probably know, sometimes you need to pretty format/print larger JSON files. This tool can format JSON files up to 1 GB in size (tested), probably more, depending on how much RAM you have available.

Why Nim? I wanted to try and experiment with the language.