# json-to-html **Repository Path**: mirrors_Automattic/json-to-html ## Basic Information - **Project Name**: json-to-html - **Description**: Convert JSON Object to HTML. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-24 - **Last Updated**: 2026-05-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # json-to-html Convert JSON Object to HTML. ## Installation npm install json-to-html ## Usage ```javascript var json2html = require('json-to-html') , html = json2html({ 'hello': 'world' }); console.log(html); ``` output: ```html { "hello": "world" } ``` 2 space indentation is default. Change it by adding a numeric argument to `json2html`. ```javascript var html = json2html(object, 4); ``` Every operand has a span added around it self with different classnames. `string`, `boolean`, `number` or `null`. ## License See [MIT-LICENSE](https://github.com/frozzare/json-to-html/blob/master/MIT-LICENSE)