Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python -m json.tool for JavaScript

This module aims to replicate the output of Python's json.tool in JavaScript. This includes indentation and key alphabetization.

In a CommonJS environment (like Node, Webpack, or Browserify):

var pythonlikeJsonToolStringify = require('pythonlike-json-tool')

In a browser environment:

<script src="/path/to/pythonlike-json-tool.js"></script>

Once it's included:

pythonlikeJsonToolStringify({
  key: 'value',
  another: 'prop'
})
// {
//     "another": "prop",
//     "key": "value"
// }

About

a JavaScript port of Python's json.tool

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages