{"id":21895947,"url":"https://github.com/btfak/j2s","last_synced_at":"2026-02-07T19:31:26.945Z","repository":{"id":19052031,"uuid":"22278220","full_name":"btfak/j2s","owner":"btfak","description":"generate golang struct from JSON","archived":false,"fork":false,"pushed_at":"2016-08-22T02:19:48.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-11T06:20:29.834Z","etag":null,"topics":["json"],"latest_commit_sha":null,"homepage":null,"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/btfak.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":"2014-07-26T04:13:49.000Z","updated_at":"2019-10-10T02:15:21.000Z","dependencies_parsed_at":"2022-07-23T02:16:16.008Z","dependency_job_id":null,"html_url":"https://github.com/btfak/j2s","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/btfak/j2s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btfak%2Fj2s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btfak%2Fj2s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btfak%2Fj2s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btfak%2Fj2s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btfak","download_url":"https://codeload.github.com/btfak/j2s/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btfak%2Fj2s/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29205249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["json"],"created_at":"2024-11-28T13:41:26.758Z","updated_at":"2026-02-07T19:31:26.930Z","avatar_url":"https://github.com/btfak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"j2s [![Build Status](https://drone.io/github.com/btfak/j2s/status.png)](https://drone.io/github.com/btfak/j2s/latest)\n======\n\n\u003ej2s is a cmd tool generate golang struct from JSON\n\n## example\n\n```\ncat example.json | ./j2s \u003e example_output.go\n\npackage main\n\ntype Financial struct {\n\tBasic  string  `json:\"basic\"`\n\tItems  []Items `json:\"items\"`\n\tNormal float64 `json:\"normal\"`\n\tUnit   Unit    `json:\"unit\"`\n}\n\ntype UnitTwo struct {\n\tPrice         string `json:\"price\"`\n\tPriceQuantity string `json:\"price_quantity\"`\n\tQuantity      string `json:\"quantity\"`\n}\n\ntype Items struct {\n\tEntrustRate   float64   `json:\"entrust_rate\"`\n\tGoodsTypeName string    `json:\"goods_type_name\"`\n\tItemID        string    `json:\"item_id\"`\n\tItemType      string    `json:\"item_type\"`\n\tItemTypeID    float64   `json:\"item_type_id\"`\n\tManifestName  string    `json:\"manifest_name\"`\n\tPaymentRate   float64   `json:\"payment_rate\"`\n\tPrice         float64   `json:\"price\"`\n\tQuantity      float64   `json:\"quantity\"`\n\tSerialNumber  string    `json:\"serial_number\"`\n\tUnitTwo       []UnitTwo `json:\"unit_two\"`\n}\ntype Unit struct {\n\tPrice         string `json:\"price\"`\n\tPriceQuantity string `json:\"price_quantity\"`\n\tQuantity      string `json:\"quantity\"`\n}\n```\n\nInstallation\n------------\n\n```\n$ go get github.com/lubia/j2s\n```\n\nRelated Work\n------------\n\n-  github.com/tmc/json-to-struct\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtfak%2Fj2s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtfak%2Fj2s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtfak%2Fj2s/lists"}