Skip to main content
I've hit a well when trying to develop the following. I'm trying to convert a JSON into a pretty view on a page WITHOUT mapping it or using a wrapper class (It's pretty large, and, the format of it might not be 100% consistent). Ideally it would be collapsible, so its not just a massive block of text.

When googling, I found plenty of things written in pure JS and I've spent some time trying to re-write /convert them to an LWC but didn't make much progress. In general, they seem to parse the JSON and dynamically convert it into a string that represents an HTML, then display that on the page.

I know this has to be possible in some way, but feel like I'm spinning.
1 resposta
0/9000