{"id":13413268,"url":"https://github.com/miolini/jsonf","last_synced_at":"2025-04-12T10:35:12.657Z","repository":{"id":32624687,"uuid":"36210547","full_name":"miolini/jsonf","owner":"miolini","description":"Console JSON formatter with query feature","archived":false,"fork":false,"pushed_at":"2020-12-13T21:45:56.000Z","size":81,"stargazers_count":65,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T20:52:04.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miolini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-25T04:53:32.000Z","updated_at":"2023-09-26T23:00:18.000Z","dependencies_parsed_at":"2022-09-01T11:40:20.737Z","dependency_job_id":null,"html_url":"https://github.com/miolini/jsonf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolini%2Fjsonf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolini%2Fjsonf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolini%2Fjsonf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolini%2Fjsonf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miolini","download_url":"https://codeload.github.com/miolini/jsonf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553901,"owners_count":21123544,"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":[],"created_at":"2024-07-30T20:01:36.486Z","updated_at":"2025-04-12T10:35:12.427Z","avatar_url":"https://github.com/miolini.png","language":"Go","readme":"Console JSON formatter with query feature.\n\nInstall:\n\n```$ go get github.com/miolini/jsonf```\n\nUsage:\n\n```\nUsage of jsonf:\n  -c=true: colorize output\n  -d=false: debug output to stderr\n  -f=true: format output json to stdout\n  -q=\"\": json query\n  -s=true: syntax hightlight\n  -v=false: verbose output to stderr\n```\n\nExamples:\n\n```\n$ echo '{\"uid\":1,\"email\":\"user@gmail.com\",\"address\":{\"city\":\"New-York\",\"country\":\"US\"}}' | jsonf\n```\n \n![Output](https://cdn.rawgit.com/miolini/jsonf/master/output.png \"Output\")\n\n \n```\n$ echo '{\"uid\":1,\"email\":\"user@gmail.com\",\"address\":{\"city\":\"New-York\",\"country\":\"US\"}}' \\\n  | jsonf -q 'value[\"address\"][\"country\"]'\n```\n\n```\n\"US\"\n```\n\n## Using from another Golang program\n\n```go\nimport (\n  ...\n  \"github.com/miolini/jsonf/jsonflib\"\n  ...\n)\n...\n    jsonRaw, err := jsonflib.Highlight(\n      jsonRaw,\n      jsonflib.HighlightFlags{Colorize: true, Verbose: false, Debug: false},\n    )\n    if err != nil {\n      return err\n    }\n```\n","funding_links":[],"categories":["JSON","Utilities","Relational Databases","工具库","实用工具","實用工具"],"sub_categories":["Advanced Console UIs","Search and Analytic Databases","检索及分析资料库","HTTP Clients","交流","SQL 查询语句构建库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiolini%2Fjsonf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiolini%2Fjsonf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiolini%2Fjsonf/lists"}