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 =
In a browser environment:
Once it's included:
// {// "another": "prop",// "key": "value"// }