This online tool will allow you to format your JSON. You can Prettify/Beautify it to make it easier to read, or you can minify it to make it smaller.
There are also options that allow you to change how many spaces to add for the indent. You may choose between: 2 spaces, 4 spaces, or a tab.
It is completely client side and runs in the browser.