Skip to main content
JSON-minify
============

A port of the `JSON-minify` utility to the Python language.

Overview
--------

`JSON-minify` minifies blocks of JSON-like content into valid JSON by removing
all whitespace *and* JS-style comments (single-line `//` and multi-line
`/* .. */`).

With `JSON-minify`, you can maintain developer-friendly JSON documents, but
minify them before parsing or transmitting them over-the-wire.

Installation
------------

You can install using pip as follows::

pip install JSON-minify

If you wish to use the development version fo JSON-minify, you can install it
as follows::

pip install git+https://github.com/getify/JSON.minify@python


Testing
-------

To run the tests, just execute json_minify.py.

::

python json_minify.py

License
-------

The code and all the documentation are released under the MIT license.

http://getify.mit-license.org/


Release files for JSON_minify 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for JSON_minify 0.3.0
File Size Uploaded
JSON_minify-0.3.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for JSON_minify 0.3.0
File Interpreter ABI Platform
JSON_minify-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.5 kB

Release files / JSON_minify-0.3.0.tar.gz

Download URL JSON_minify-0.3.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
499717626144a533d64ed4a1513976cf2212958b6806a66e07dd8e22207df559
BLAKE2b-256 checksum
How to use checksums
b51da641b3c8a59b06dcb4adf86adc8e5ea73942a958139ccaf607b2a8c473bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / JSON_minify-0.3.0-py2.py3-none-any.whl

Download URL JSON_minify-0.3.0-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
268e6966c0f1dcb32ac54e1d047b83deba9ce711c0763ceba63f26d3aeedf656
BLAKE2b-256 checksum
How to use checksums
b1876002eeb7478fae1344a8dbcc1c1594d1755e73c1d179ff697ab881bbfa06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page