{"id":20049448,"url":"https://github.com/weaming/pretty-format-json","last_synced_at":"2026-05-03T11:31:39.457Z","repository":{"id":62578042,"uuid":"138576363","full_name":"weaming/pretty-format-json","owner":"weaming","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-20T07:35:32.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T08:52:08.592Z","etag":null,"topics":["csv","json","utilities","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/weaming.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":"2018-06-25T09:57:37.000Z","updated_at":"2020-07-20T07:35:34.000Z","dependencies_parsed_at":"2022-11-03T19:39:49.206Z","dependency_job_id":null,"html_url":"https://github.com/weaming/pretty-format-json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/weaming/pretty-format-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpretty-format-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpretty-format-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpretty-format-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpretty-format-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaming","download_url":"https://codeload.github.com/weaming/pretty-format-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpretty-format-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32567168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csv","json","utilities","yaml"],"created_at":"2024-11-13T11:50:04.897Z","updated_at":"2026-05-03T11:31:39.440Z","avatar_url":"https://github.com/weaming.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pretty Format JSON\n\nPretty print json contains python style coments, string literal.\n\n```\npip3 install pretty-format-json\n```\n\nYaml and CSV write works fine in Python3 but not in Python2\n\n## Binaries\n\n* `pretty_format_json`: parse NodeJS style, Python style text to JSON\n* `csv_json`: Convert between CSV and JSON\n* `yaml_json`: Convert between Yaml and JSON\n\n## Use it in VIM\n\nAdd `noremap \u003ca-j\u003e :%!pretty_format_json\u003cCR\u003e` (or your key binding) to your config file.\n\n```\nnoremap \u003ca-j\u003e :%!pretty_format_json\u003cCR\u003e\nnoremap \u003ca-k\u003e :%!yaml_json\u003cCR\u003e\nnoremap \u003ca-c\u003e :%!csv_json\u003cCR\u003e\n```\n\nWhen you open a blank buffer, paste the text copied from somewhere into,\nthen use `Alt+j` to convert to JSON,\nuse `Alt-k` to convert to Yaml and back to JSON.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaming%2Fpretty-format-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweaming%2Fpretty-format-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaming%2Fpretty-format-json/lists"}