Type Here to Get Search Results !

JSON to Text Tool with colorful styling

JSON to Text Tool
try { const jsonObj = JSON.parse(jsonInput); const formatter = new JSONFormatter(jsonObj, 2, { theme: 'light' }); const resultDiv = document.getElementById('result'); resultDiv.innerHTML = ''; resultDiv.appendChild(formatter.render()); // Highlight.js syntax highlighting document.querySelectorAll('pre code').forEach((block) => { hljs.highlightBlock(block); }); } catch (error) { alert('Invalid JSON format. Please enter a valid JSON.'); } }

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.