{"id":19877473,"url":"https://github.com/bbrtj/vim-jsonviewer","last_synced_at":"2025-07-23T18:05:14.939Z","repository":{"id":133104776,"uuid":"222315969","full_name":"bbrtj/vim-jsonviewer","owner":"bbrtj","description":"JSON browser in vim","archived":false,"fork":false,"pushed_at":"2024-07-10T15:01:00.000Z","size":10,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T19:27:22.042Z","etag":null,"topics":["hacktoberfest","plugin","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/bbrtj.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-17T21:41:32.000Z","updated_at":"2025-05-20T18:53:06.000Z","dependencies_parsed_at":"2024-07-14T12:15:19.884Z","dependency_job_id":null,"html_url":"https://github.com/bbrtj/vim-jsonviewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bbrtj/vim-jsonviewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbrtj%2Fvim-jsonviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbrtj%2Fvim-jsonviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbrtj%2Fvim-jsonviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbrtj%2Fvim-jsonviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbrtj","download_url":"https://codeload.github.com/bbrtj/vim-jsonviewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbrtj%2Fvim-jsonviewer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266726613,"owners_count":23974926,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["hacktoberfest","plugin","vim"],"created_at":"2024-11-12T16:37:33.409Z","updated_at":"2025-07-23T18:05:14.917Z","avatar_url":"https://github.com/bbrtj.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jsonviewer\n\nBrowse through contents of JSON effortlessly.\n\nThis plugin is not a JSON prettifier. It is a JSON browser optimized for speed\nand comfort, featuring json-like structure, automatic code folding with\ndatatype and number of offspring, syntax coloring and content lazyloading for\nresponsiveness even on very large files.\n\n### Description\n\nJsonviewer lets you view JSON objects in your favorite editor. The plugin is\nlightweight, fully autoloaded and does not interfere with \\*.json file syntax.\nInstead, it introduces its own filetype called `jsonviewer`, which is designed to\nkeep a human-readable representation of those objects.\n\nOnce you have a buffer open with a single JSON, issue a `:call\njsonviewer#init()` command to open the browser buffer. With your object deep\nenough you will see some lines folded, use `o` or `Enter` mapping to open a\nsingle fold and load it if needed.\n\nThis lugin uses a special optimization which causes it to only load data two\nlevels down. By default, this is done for every buffer exceeding half a\nmegabyte in size. Using any other method of fold opening than those mentioned\nabove (like `zA`) will open unloaded folds in optimized buffers, forcing you to\nclose and open them again to load the data. Press `OO` to close all folds above\nlevel 1, which fixes this issue.\n\n## Usage\n\n### Key maps\n\nJsonviewer introduces few keymaps, all of them only available in jsonviewer buffers:\n\n* `o` - open a fold, lazyload contents\n* `Enter` - same as above\n* `OO` - reload folds in buffer (fix opened lazyloading folds)\n\n### Configuration\n\n* `g:jsonviewer_optimize` - holds optimization threshold - a number of bytes\n  which will trigger optimizations when exceeded. While optimized, elements\n  will only be loaded two levels down. This helps a lot with Vim responsiveness\n  but makes some tasks impossible, like recursive fold opening and searching.\n  Defaults to 500000 (500 kB). Set to 0 to always optimize.\n\n### Functions\n\n* `jsonviewer#init()` - call this function while inside a buffer containing a\n  json (and nothing else) to launch a jsonviewer browser buffer with its\n  contents.\n\n### File sizes and optimization\n\nThe main feature of this plugin is its ability to load json content lazily,\nwhich greatly reduces the amount of lag in large files. In my tests on an Intel\ni5 laptop, the plugin was able to load a file with 100 MB of JSON in 6 seconds,\nconsuming roughly 1.7 GB of RAM. While there's no theoretical limit to the size\nof a file loaded (other than Vim limits), the amount of memory consumed is\nincreasing rapidly with very large files.\n\n### TODO\n\nThere are some features planned, like folding based on syntax (currently no\nworking solution was achieved), further optimizations, searching and exporting\nparts of the json.\n\n### Requirements\n\nTBD. Requires vim8 compiled with +folding and +conceal features.\n\n## Author and license\n\nAuthor: Bartosz Jarzyna \"bbrtj\" \u003cbbrtj.pro@gmail.com\u003e\n\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbrtj%2Fvim-jsonviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbrtj%2Fvim-jsonviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbrtj%2Fvim-jsonviewer/lists"}