{"id":22308780,"url":"https://github.com/ratson/json.human.js","last_synced_at":"2025-09-02T12:33:56.701Z","repository":{"id":57285498,"uuid":"81339244","full_name":"ratson/json.human.js","owner":"ratson","description":"Fork of https://github.com/marianoguerra/json.human.js for npm","archived":false,"fork":false,"pushed_at":"2017-02-08T14:46:45.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T19:07:22.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ratson.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-08T14:39:28.000Z","updated_at":"2017-02-08T14:47:01.000Z","dependencies_parsed_at":"2022-08-25T07:21:18.580Z","dependency_job_id":null,"html_url":"https://github.com/ratson/json.human.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fjson.human.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fjson.human.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fjson.human.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fjson.human.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/json.human.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245571265,"owners_count":20637311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T20:15:17.219Z","updated_at":"2025-03-26T01:28:55.651Z","avatar_url":"https://github.com/ratson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"json.human.js: Json Formatting for Human Beings\n===============================================\n\nA small library to convert a JSON object into a human readable HTML\nrepresentation that is easy to style for different purposes.\n\nWho?\n----\n\nMariano Guerra\n\nWhy?\n----\n\nAt `Event Fabric \u003chttp://event-fabric.com/\u003e`_ we need to display JSON to people\nfrom all technical levels without being to technical but also without losing\ninformation about the underlying JSON object.\n\nHow?\n----\n\nyou can see js/demo.js in this repo for an example or use it live at the\n`project page \u003chttp://marianoguerra.github.io/json.human.js\u003e`_\n\n::\n\n    var node = JsonHuman.format(input);\n    output.appendChild(node);\n\n\nAdditional options parameter can be supplied\n\n::\n\n    var input = {\n          \"url\" : [\n                \"www.google.com\",\n                \"www.google.com\",\n                {\n                  \"x\" : \"x-direction\",\n                  \"y\" : \"y-direction\",\n                  \"url\" : \"www.google.com\"\n                }\n          ]\n    };\n\n    var node = JsonHuman.format(input, {\n        // Show or hide Array-Indices in the output\n        showArrayIndex: true,\n\n        // Hyperlinks Option\n        // Enable \u003ca\u003e tag in the output html based on object keys\n        // Supports only strings and arrays\n        hyperlinks : {\n            enable : true,\n            keys: ['url'],          // Keys which will be output as links\n            target : '_blank'       // 'target' attribute of a\n        },\n\n        // Options for displaying bool\n        bool : {\n            // Show text? And what text for true \u0026 false?\n            showText : true,\n            text : {\n                true : \"Yes\",\n                false : \"No\"\n            },\n\n            // Show image? And which images (urls)?\n            showImage : true,\n            img : {\n                true : 'css/true.png',\n                false : 'css/false.png'\n            }\n        }\n    });\n\nTo install it, if you're using `Bower \u003chttps://github.com/bower/bower\u003e`_ you\ncan just run::\n\n    bower install json-human --save\n\n\nAlternatives\n------------\n\n* prettyprint.js: https://github.com/padolsey/prettyPrint.js\n\nLicense?\n--------\n\n`MIT \u003chttp://opensource.org/licenses/MIT\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fjson.human.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fjson.human.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fjson.human.js/lists"}