tidy-json

Simple recursive serializer of a JSON object into a string with newlines and spaces.

Usage no npm install needed!

<script type="module">
  import tidyJson from 'https://cdn.skypack.dev/tidy-json';
</script>

README

tidy-json

Simple recursive serializer of a JSON object into a string with newlines and spaces.

Install

Install using npm:

npm i tidy-json;

Usage

import tidyjson from 'tidy-json';
console.log(tidyjson({'hi':'world',something:['4','a','13ois', true, false, null, '42', 34], somethingElse:{'hey':'WORLD!', s3: {'new': 'saopg!!!'}}}));