{"id":16683054,"url":"https://github.com/hlts2/gson-viewer","last_synced_at":"2025-08-13T15:35:31.391Z","repository":{"id":57490850,"uuid":"121857200","full_name":"hlts2/gson-viewer","owner":"hlts2","description":"Interactive command-line JSON viewer.","archived":false,"fork":false,"pushed_at":"2021-02-09T14:28:16.000Z","size":3601,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-20T08:09:33.400Z","etag":null,"topics":["cli","cli-app","cli-tool","command-line-tool","golang","gson-viewer","hlts2","interactive","json","json-parsing","json-viewer","repl","viewer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hlts2.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":"2018-02-17T13:24:45.000Z","updated_at":"2021-02-09T14:28:18.000Z","dependencies_parsed_at":"2022-08-30T03:40:41.530Z","dependency_job_id":null,"html_url":"https://github.com/hlts2/gson-viewer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fgson-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fgson-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fgson-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fgson-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlts2","download_url":"https://codeload.github.com/hlts2/gson-viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243401511,"owners_count":20285058,"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":["cli","cli-app","cli-tool","command-line-tool","golang","gson-viewer","hlts2","interactive","json","json-parsing","json-viewer","repl","viewer"],"created_at":"2024-10-12T14:10:11.468Z","updated_at":"2025-03-13T12:14:29.265Z","avatar_url":"https://github.com/hlts2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gson-viewer [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Go Report Card](https://goreportcard.com/badge/github.com/hlts2/gson-viewer)](https://goreportcard.com/report/github.com/hlts2/gson-viewer) [![Join the chat at https://gitter.im/hlts2/gson-viewer](https://badges.gitter.im/hlts2/gson-viewer.svg)](https://gitter.im/gson-viewer/Lobby?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link)\ngson-viewer is an interactive command-line JSON viewer.\n\n## Install\n\n```shell\ngo get github.com/hlts2/gson-viewer\n```\n\n## Demo\n\nAn interactive command-line JSON viewer demo.\n\n![gson-viewer](./demo/demo.gif)\n\n## Example\n\n### File Mode\n\nTo launch an interactive command-line JSON viewer from file.\n\n```shell\n\ngson-viewer -s {json file}\n\n```\n\n### Pipe Mode\n\nTo launch an interactive command-line JSON viewer from pipe.\n\n```shell\n\ncat test.json | gson-viewer\n\n```\n\n### REPL Mode\n#### How to get JSON value\n\nThe path is syntax such as `created_at.date`. And if you want to get the element of array, please put a number such as `friends.[0]`.\n\n```json\n{\n    \"friends\": [\n        {\"name\": \"hlts2\"},\n        {\"name\": \"hiroto\"}\n    ],\n    \"created_at\": {\n        \"date\": \"2017-05-10 12:54:18\",\n        \"timezone\": \"UTC\"\n    }\n}\n```\n\n```shell\n\u003e\u003e\u003e friends.[1].name\n// hiroto\n```\n\n#### `show` command\n\nThe `show` command shows shaped JSON\n\n```shell\n\u003e\u003e\u003e show\n```\n\n#### How to exit\n\n```\nctl-d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlts2%2Fgson-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlts2%2Fgson-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlts2%2Fgson-viewer/lists"}