{"id":3683892,"name":"github.com/subchen/gojson","ecosystem":"go","description":"gojson generates go struct defintions from JSON documents Reads from stdin and prints to stdout Example: curl -s https://api.github.com/repos/chimeracoder/gojson | gojson -name=Repository Output: package main type Repository struct { ArchiveURL string `json:\"archive_url\"` AssigneesURL string `json:\"assignees_url\"` BlobsURL string `json:\"blobs_url\"` BranchesURL string `json:\"branches_url\"` CloneURL string `json:\"clone_url\"` CollaboratorsURL string `json:\"collaborators_url\"` CommentsURL string `json:\"comments_url\"` CommitsURL string `json:\"commits_url\"` CompareURL string `json:\"compare_url\"` ContentsURL string `json:\"contents_url\"` ContributorsURL string `json:\"contributors_url\"` CreatedAt string `json:\"created_at\"` DefaultBranch string `json:\"default_branch\"` Description string `json:\"description\"` DownloadsURL string `json:\"downloads_url\"` EventsURL string `json:\"events_url\"` Fork bool `json:\"fork\"` Forks float64 `json:\"forks\"` ForksCount float64 `json:\"forks_count\"` ForksURL string `json:\"forks_url\"` FullName string `json:\"full_name\"` GitCommitsURL string `json:\"git_commits_url\"` GitRefsURL string `json:\"git_refs_url\"` GitTagsURL string `json:\"git_tags_url\"` GitURL string `json:\"git_url\"` HasDownloads bool `json:\"has_downloads\"` HasIssues bool `json:\"has_issues\"` HasWiki bool `json:\"has_wiki\"` Homepage interface{} `json:\"homepage\"` HooksURL string `json:\"hooks_url\"` HtmlURL string `json:\"html_url\"` ID float64 `json:\"id\"` IssueCommentURL string `json:\"issue_comment_url\"` IssueEventsURL string `json:\"issue_events_url\"` IssuesURL string `json:\"issues_url\"` KeysURL string `json:\"keys_url\"` LabelsURL string `json:\"labels_url\"` Language string `json:\"language\"` LanguagesURL string `json:\"languages_url\"` MasterBranch string `json:\"master_branch\"` MergesURL string `json:\"merges_url\"` MilestonesURL string `json:\"milestones_url\"` MirrorURL interface{} `json:\"mirror_url\"` Name string `json:\"name\"` NetworkCount float64 `json:\"network_count\"` NotificationsURL string `json:\"notifications_url\"` OpenIssues float64 `json:\"open_issues\"` OpenIssuesCount float64 `json:\"open_issues_count\"` Owner struct { AvatarURL string `json:\"avatar_url\"` EventsURL string `json:\"events_url\"` FollowersURL string `json:\"followers_url\"` FollowingURL string `json:\"following_url\"` GistsURL string `json:\"gists_url\"` GravatarID string `json:\"gravatar_id\"` HtmlURL string `json:\"html_url\"` ID float64 `json:\"id\"` Login string `json:\"login\"` OrganizationsURL string `json:\"organizations_url\"` ReceivedEventsURL string `json:\"received_events_url\"` ReposURL string `json:\"repos_url\"` SiteAdmin bool `json:\"site_admin\"` StarredURL string `json:\"starred_url\"` SubscriptionsURL string `json:\"subscriptions_url\"` Type string `json:\"type\"` URL string `json:\"url\"` } ` json:\"owner\"` Private bool `json:\"private\"` PullsURL string `json:\"pulls_url\"` PushedAt string `json:\"pushed_at\"` Size float64 `json:\"size\"` SshURL string `json:\"ssh_url\"` StargazersURL string `json:\"stargazers_url\"` StatusesURL string `json:\"statuses_url\"` SubscribersURL string `json:\"subscribers_url\"` SubscriptionURL string `json:\"subscription_url\"` SvnURL string `json:\"svn_url\"` TagsURL string `json:\"tags_url\"` TeamsURL string `json:\"teams_url\"` TreesURL string `json:\"trees_url\"` UpdatedAt string `json:\"updated_at\"` URL string `json:\"url\"` Watchers float64 `json:\"watchers\"` WatchersCount float64 `json:\"watchers_count\"` }","homepage":"https://github.com/subchen/gojson","licenses":"GPL-3.0","normalized_licenses":["GPL-3.0"],"repository_url":"https://github.com/subchen/gojson","keywords_array":[],"namespace":"github.com/subchen","versions_count":1,"first_release_published_at":"2017-09-03T21:03:11.000Z","latest_release_published_at":"2017-09-03T21:03:11.000Z","latest_release_number":"v1.0.0","last_synced_at":"2026-07-29T23:30:45.842Z","created_at":"2022-04-11T11:06:01.830Z","updated_at":"2026-09-04T06:14:07.400Z","registry_url":"https://pkg.go.dev/github.com/subchen/gojson","install_command":"go get github.com/subchen/gojson","documentation_url":"https://pkg.go.dev/github.com/subchen/gojson#section-documentation","metadata":{},"repo_metadata":{"id":68620299,"uuid":"127374363","full_name":"subchen/gojson","owner":"subchen","description":"Automatically generate Go (golang) struct definitions from example JSON","archived":false,"fork":true,"pushed_at":"2018-03-30T06:00:32.000Z","size":210,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-22T13:05:55.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ChimeraCoder/gojson","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subchen.png","metadata":{},"created_at":"2018-03-30T03:01:48.000Z","updated_at":"2018-03-30T06:00:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/subchen/gojson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/subchen/gojson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subchen","download_url":"https://codeload.github.com/subchen/gojson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgojson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":37020239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-04T02:00:06.169Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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"},"owner_record":{"login":"subchen","name":"QC","uuid":"2189657","kind":"user","description":"","email":"","website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/2189657?u=c60c38437a95dc3402a62b919a0d686c563e3c97\u0026v=4","repositories_count":83,"last_synced_at":"2023-05-19T13:44:22.308Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/subchen","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-05T03:49:45.592Z","updated_at":"2023-05-19T13:44:22.352Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subchen","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subchen/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-09-04T06:14:07.399Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/subchen/gojson","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/subchen/gojson","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/subchen/gojson","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/subchen/gojson/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-18T01:09:21.577Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgojson/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsubchen%2Fgojson/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsubchen%2Fgojson/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsubchen%2Fgojson/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsubchen%2Fgojson/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsubchen%2Fgojson/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsubchen%2Fgojson/codemeta","maintainers":[]}