I create a JSON object in my XSLT stylesheet. It's difficult to read by eye when viewing the HTML source. I'm wondering if there's a way in my XSLT template to cause a visual line break so each {...},
is on a new line. It would make it so much easier to read by eye...
Currently:
[{ .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }, { .... }]
Desired:
[
{ .... },
{ .... },
{ .... },
{ .... },
etc., etc.
]
I'm not sure what to do in XSLT that would cause the break and then I'm sure there is something JSON requires for the break to be valid?