# Minifying JSON with \`jq\`

DevFeed: [Minifying JSON with \`jq\`](<https://devfeed.tech/articles/minifying-json-with-jq-76985.md>)

Original publisher: [Read original article](<https://www.jvt.me/posts/2026/10/08/minify-json-jq/>)

Author: Jamie Tanna

Published: 2026-10-08T09:23:58Z

Content type: tutorial

Language: en

Sources: [Jamie Tanna](<https://devfeed.tech/sources/articles-on-jamie-tanna-software-engineer.md>)

Topics: [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [blogumentation](<https://devfeed.tech/tags/blogumentation.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [jq](<https://devfeed.tech/tags/jq.md>), [json](<https://devfeed.tech/tags/json.md>)

## AI overview

The post shows how to minify JSON with jq by setting the indentation level to zero using `jq --indent 0 .`.

## Source excerpt

As an improvement to my version with Python or with Ruby, with tools like jq now being widely used, how do we minify a JSON string? Given: { "key": [ 123, 456 ], "key2": "value" } We can override the --indent: % jq --indent 0 . < a.json {"key":[123,456],"key2":"value"}