3 ms·
I can recommend formatting the JSON. Like this: demoElement.innerHTML = JSON.stringify(data, null, 4); And then use "<pre>" tag in the demoElement.
by hmottestad 13y ago
I can recommend formatting the JSON. Like this:
demoElement.innerHTML = JSON.stringify(data, null, 4);
And then use "<pre>" tag in the demoElement.
- egeozcan 13y agoThat is the first thing I did using the web inspector. One could also use a js-beautifier I guess.
- premasagar 13y agoA good idea. I've just added that to the docs site.