rg443

json prettify

Oct 31st, 2015
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pre1=document.createElement("pre"); pre1.innerText=JSON.stringify(JSON.parse(document.body.textContent),null,2);document.body.innerHTML="";document.body.appendChild(pre1);
Advertisement
Add Comment
Please, Sign In to add comment