{"id":13500343,"url":"https://github.com/yesmeck/jquery-jsonview","last_synced_at":"2025-03-29T05:33:51.104Z","repository":{"id":6071504,"uuid":"7297501","full_name":"yesmeck/jquery-jsonview","owner":"yesmeck","description":"[UNMAINTAINED]View JSON in a more readable format ","archived":true,"fork":false,"pushed_at":"2017-10-09T07:00:50.000Z","size":107,"stargazers_count":490,"open_issues_count":15,"forks_count":157,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-05-22T18:31:36.305Z","etag":null,"topics":["jquery-jsonview","jquery-plugin","json-viewer"],"latest_commit_sha":null,"homepage":"http://yesmeck.github.io/jquery-jsonview/","language":"CoffeeScript","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/yesmeck.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":"2012-12-23T18:10:19.000Z","updated_at":"2024-03-15T03:37:14.000Z","dependencies_parsed_at":"2022-08-31T00:00:16.642Z","dependency_job_id":null,"html_url":"https://github.com/yesmeck/jquery-jsonview","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yesmeck%2Fjquery-jsonview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yesmeck%2Fjquery-jsonview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yesmeck%2Fjquery-jsonview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yesmeck%2Fjquery-jsonview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yesmeck","download_url":"https://codeload.github.com/yesmeck/jquery-jsonview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145013,"owners_count":20730494,"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":["jquery-jsonview","jquery-plugin","json-viewer"],"created_at":"2024-07-31T22:00:56.788Z","updated_at":"2025-03-29T05:33:46.574Z","avatar_url":"https://github.com/yesmeck.png","language":"CoffeeScript","funding_links":[],"categories":["CoffeeScript"],"sub_categories":[],"readme":"# jQuery JSONView\n\nFormats \u0026 syntax highlights JSON.\n\nPort of Ben Hollis's JSONView extension for Firefox: http://jsonview.com\n\n[Live demo](http://yesmeck.github.io/jquery-jsonview/)\n\n## Usage\n\n### Example\n\n```javascript\nvar json = {\"hey\": \"guy\",\"anumber\": 243,\"anobject\": {\"whoa\": \"nuts\",\"anarray\": [1,2,\"thr\u003ch1\u003eee\"], \"more\":\"stuff\"},\"awesome\": true,\"bogus\": false,\"meaning\": null, \"japanese\":\"明日がある。\", \"link\": \"http://jsonview.com\", \"notLink\": \"http://jsonview.com is great\"};\n\n$(function() {\n  $(\"#json\").JSONView(json);\n  // with options\n  $(\"#json-collasped\").JSONView(json, { collapsed: true });\n});\n```\n\n### Options\n\njQuery JSONView can be configured using the following options.\n\n* `collapsed` - Collapse all nodes when rendering first time, default is `false`.\n* `nl2br` - Convert new line to `\u003cbr\u003e` in String, default is `false`.\n* `recursive_collapser` - Collapse nodes recursively, default is `false`.\n* `escape` - Escape HTML in key, default is `true`.\n* `strict` - In strict mode, invalid JSON value type will throw a error, default is `false`.\n\n### API\n\njQuery JSONView provide following methods to allow you control JSON nodes, all methods below accept a level argument to perform action on the specify node.\n\n* `jQuery#JSONView('collapse', [level])` - Collapse nodes.\n* `jQuery#JSONView('expand', [level])` - Expand nodes.\n* `jQuery#JSONView('toggle', [level])` -  Toggle nodes.\n\n## Licence\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyesmeck%2Fjquery-jsonview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyesmeck%2Fjquery-jsonview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyesmeck%2Fjquery-jsonview/lists"}