{"id":15515994,"url":"https://github.com/geolexica/jekyll-tidy-json","last_synced_at":"2025-09-15T03:13:22.108Z","repository":{"id":54880806,"uuid":"262291606","full_name":"geolexica/jekyll-tidy-json","owner":"geolexica","description":"A Jekyll plugin that cleans JSONs up","archived":false,"fork":false,"pushed_at":"2021-01-22T14:44:01.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-14T09:19:21.684Z","etag":null,"topics":["jekyll","jekyll-plugin","json","tidy"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geolexica.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-08T10:15:25.000Z","updated_at":"2022-12-07T10:28:11.000Z","dependencies_parsed_at":"2022-08-14T05:31:20.314Z","dependency_job_id":null,"html_url":"https://github.com/geolexica/jekyll-tidy-json","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geolexica%2Fjekyll-tidy-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geolexica%2Fjekyll-tidy-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geolexica%2Fjekyll-tidy-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geolexica%2Fjekyll-tidy-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geolexica","download_url":"https://codeload.github.com/geolexica/jekyll-tidy-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250362969,"owners_count":21418176,"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":["jekyll","jekyll-plugin","json","tidy"],"created_at":"2024-10-02T10:05:18.387Z","updated_at":"2025-04-23T03:26:59.768Z","avatar_url":"https://github.com/geolexica.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Jekyll-Tidy-JSON\n\nifdef::env-github[]\nimage:https://img.shields.io/gem/v/jekyll-tidy-json[\n    \"Gem Version\",\n    link=\"https://rubygems.org/gems/jekyll-tidy-json\"]\nimage:https://img.shields.io/github/workflow/status/geolexica/jekyll-tidy-json/Tests[\n    \"Build Status\",\n    link=\"https://github.com/geolexica/jekyll-tidy-json/actions\"]\nendif::[]\n\nA Jekyll plugin that cleans JSONs up.\n\nIt takes a JSON page and applies consistent formatting rules to it.  If that\ninput is malformed, then raises an exception preventing you from deploying\na buggy site.\n\nIf you use Liquid templates to build JSONs for your site, then you probably\nreally want it.\n\n== Installation\n\nInclude this gem in your site's Gemfile under the `jekyll_plugins` group:\n\n[source,lang=sh]\n----\ngroup :jekyll_plugins do\n  gem \"jekyll-tidy-json\"\nend\n----\n\nVisit https://jekyllrb.com/docs/plugins/installation/[Jekyll documentation]\nfor a detailed description or more installation options.\n\n== Configuration\n\nThis plugin's behaviour is steered by \"tidy_json\" entry in site's `_config.yml`.\nFor example, following enables JSON prettifying:\n\n[source,lang=yaml]\n----\ntidy_json:\n  pretty: true\n----\n\nAvailable configuration options:\n\n[cols=3*,options=\"header\"]\n|===\n| Option name\n| Description\n| Default setting\n\n| `continue_on_error`\n| If set to `false`, any malformed JSON encounter will raise error, preventing\nsite from being built.  If set to `true`, all malformed files are exempted from\nbeing tidied up with a meaningful warning being printed, but site generation\ncontinues.\n| `false`\n\n| `enabled`\n| Can be used to disable the plugin entirely by setting it to `false`.\n| `true`\n\n| `pretty`\n| If set to `true`, then JSONs will be prettified for readability sake.  If\nset to `false`, then all unnecessary spaces and new lines will be removed.\n| `false`\n|===\n\n== TODO\n\nThis plugin is fairly complete.  However, some enhancements would be welcome:\n\n- more options for pretty formatting\n- options for including/excluding JSON files\n- JSON sanitizing features, perhaps by integrating\n  https://github.com/OWASP/json-sanitizer[json-sanitizer] by OWASP\n- support for some improved JSON syntax like https://json5.org/[JSON5]\n  or http://www.relaxedjson.org/[Relaxed JSON] if any of them gets popular\n  enough\n\n== Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/geolexica/jekyll-tidy-json.\n\n== Credits\n\nThis gem is developed, maintained and funded by\nhttps://www.ribose.com[Ribose Inc.]\n\n== License\n\nThis gem is licensed under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeolexica%2Fjekyll-tidy-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeolexica%2Fjekyll-tidy-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeolexica%2Fjekyll-tidy-json/lists"}