{"id":25858988,"url":"https://github.com/polina-prokofieva/viewjson","last_synced_at":"2026-05-15T07:31:29.859Z","repository":{"id":42754576,"uuid":"173299327","full_name":"polina-prokofieva/ViewJSON","owner":"polina-prokofieva","description":"The class for convenient visualization of json with some settings.","archived":false,"fork":false,"pushed_at":"2023-01-07T20:04:02.000Z","size":394,"stargazers_count":2,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T20:46:54.926Z","etag":null,"topics":["data","data-visualization","es5","es6","javascript","json"],"latest_commit_sha":null,"homepage":"https://polina-prokofieva.github.io/ViewJSON/","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/polina-prokofieva.png","metadata":{"files":{"readme":"README.md","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":"2019-03-01T12:36:25.000Z","updated_at":"2022-01-13T09:18:29.000Z","dependencies_parsed_at":"2023-02-08T00:02:06.234Z","dependency_job_id":null,"html_url":"https://github.com/polina-prokofieva/ViewJSON","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polina-prokofieva/ViewJSON","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polina-prokofieva%2FViewJSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polina-prokofieva%2FViewJSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polina-prokofieva%2FViewJSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polina-prokofieva%2FViewJSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polina-prokofieva","download_url":"https://codeload.github.com/polina-prokofieva/ViewJSON/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polina-prokofieva%2FViewJSON/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33057823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data","data-visualization","es5","es6","javascript","json"],"created_at":"2025-03-01T20:39:21.909Z","updated_at":"2026-05-15T07:31:29.836Z","avatar_url":"https://github.com/polina-prokofieva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViewJSON\n\n## Descrption\n\n**ViewJSON** is a class for convenient presentation of a json.\n\n## Published\n\nhttps://polina-prokofieva.github.io/ViewJSON/\n\n## Setup\n\nGet files from **dist** directory and add it to your project.\n\n## Syntax\n\n```\nvJSON = new ViewJSON.default(element, json, settings);\nvJSON.start();\n```\n\nOr if you'll use source JS code from lib.sourse/ViewJSON.js:\n\n```\nvJSON = new ViewJSON(element, json, settings);\nvJSON.start();\n```\n\n### Parameters\n\n**element** — _DOM-element_ in which your json will be rendered. For proper work it should be block-element.\n\n**json** — _string_ which is your json.\n\n**settings** — _string_ which is json with settings for presentation of your json.\n\n## Methods\n\n**.start()** — generate and render view of your json to **element**.\n\n**.clear()** — clear **element**.\n\n## Settings Syntax\n\n**settings** shoud have next fromat:\n\n```\n{\n  \"root\": \"\",\n  \"formatCamelCase\": true,\n  \"formatDate\": false,\n  \"nullAppearence\": \"-\",\n  \"boolAppearence\": [\"No\", \"Yes\"],\n  \"hidePropertiesByValue\": [\n    null,\n    0,\n    \"\"\n  ],\n  \"hidePropertiesByKey\": [\n    \"OverdraftLimit\",\n    \"Description\",\n    \"Id\"\n  ],\n  \"dateAppearence\": {\n    \"keys\": [\n      \"Date\"\n    ]\n  },\n  \"showSearchPanel\" : true,\n  \"arraysAsTable\": [\n    \"Transactions\"\n  ],\n  \"keysForArrays\": {\n    \"Accounts\": \"Title\"\n  }\n}\n```\n\n**root** — root of json which should be presented. If it is \"\" the whole json will be presented.\n\n**formatCamelCase** — if it is _true_ all parameters in CamesCase will be formatted to separate words.\n\n**formatDate** — format of date values.\n\n**nullAppearence** — string by which will be replaced **_null_** values.\n\n**boolAppearence** — array of strings by which will be replased **_true_** and **_false_** values.\n\n**hidePropertiesByValue** — array of values by which will be hided parameters of your json.\n\n**hidePropertiesByKey** — array of keys by which will be hided parameters of your json.\n\n**dateAppearence** — key which will be detected as date.\n\n**showSearchPanel** — show or not search panel.\n\n**arraysAsTable** — array of keys of parameters which contain an array and which will be presented as a table.\n\n**keysForArrays** — an abject where keys are names of arrays and values are properties which will be shown as keys for corresponding arrays.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolina-prokofieva%2Fviewjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolina-prokofieva%2Fviewjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolina-prokofieva%2Fviewjson/lists"}