Change JSON indent size?


Is there a way to change the JSONFormatter::indentSize?

It seems not. That's just for cosmetic purpose and is rather unimportant. 

Not something I'd thought about! It could be added as a parameter, I guess.

I prefer 4 spaces indentation but that's just a matter of taste. Set it as a parameter would be an handy feature if efficiency is not degraded for that. 

Hey there
Was this ever fixed/implemented? I’ve looked through the docs and haven’t found anything yet.
Cheers, J

You can have a look at this old-ish formatter I wrote: JSON String Formatter

This would obviously be a post-process of the JSON…

1 Like

Nice, @jrlanglois, thanks for sharing that :slight_smile: