JSON formater JavaScript function called `JSONFormat` that converts JSON data into a formatted HTML string with syntax highlighting. It uses recursive functions to handle different data types like strings, numbers, arrays, and objects, applying CSS classes for color-coded display. The code also includes a method to dynamically load the required CSS styles into the webpage. json.format.js This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters var JSONFormat = function { var toString = Object.prototype.toString; function format object, indent count { var html fragment = ''; switch typeof object { case 'Null' :0 html fragment = format null object ; break; case 'Boolean' : html fragment = format boolean object ; break; case 'Number' : html fragment = format number object ; break; case 'String' : html fragment = format string object ; break; case 'Array' : html fragment = format array object, indent count ; break; case 'Object' : html fragment = format object object, indent count ; break; } return html fragment; }; function format null object { return '