JSON.stringify take a third parameter,
space, which allows you to add the amount of spaces you want for the indent, so that the JSON is more readable. I am editing some SVG files and I would like my output to be well formatted in this way, adding spaces for indentation.
The package I am using to convert between XML and JSON is fast-xml-parser. I have not seen anything in the documents that can help with this. Is there something I missed or is there another conversion library that supports adding indent?